Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2019-05-18 16:16:45
Size: 141
Editor: PieterSmit
Comment:
Revision 8 as of 2020-07-31 11:37:38
Size: 1273
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
 * Links [[esp8266]]
 * Links [[esp8266]] , [[esp8266/tasmota]]
 * Tried mosquitto mqtt server, easy install but not very reliable, kept stopping with nothing in the logs, moved on to [[RabbitMq]]
 * 2020 - mqtt integration with google home assistant [[http://va.nce.me/Google_Home_light_control_via_mqtt.html]]
Line 7: Line 8:

== mosquito and tasmota on esp8266 ==
 * Configure esp8266 mqtt Full Topic default %prefix%/%topic%/

 * LED on power/relay on pin #14 Relay1(21)
   * mosquitto_pub -h 192.168.0.13 -t cmnd/esp01/power -m on
   * mosquitto_pub -h 192.168.0.13 -t cmnd/esp01/power -m off

== mosquitto mqtt config ==
 * config create user file {{{
mosquitto_passwd -c /etc/mosquitto/passwords.txt <user>
}}}
 * Config /etc/mosquitto/mosquitto.conf {{{
###20190519 PES
connection_messages true
# If set to true, add a timestamp value to each log message.
log_timestamp true
log_type all
##
connection bridge-home
address vigor.nz:1883
topic # out 0
topic # in 0
###
allow_anonymous false
password_file /etc/mosquitto/passwords.txt
remote_username pes
remote_password pesmqttpasswd
# add user #
###
}}}




allow_anonymous false
password_file

mqtt

Servers

mosquito and tasmota on esp8266

  • Configure esp8266 mqtt Full Topic default %prefix%/%topic%/
  • LED on power/relay on pin #14 Relay1(21)
    • mosquitto_pub -h 192.168.0.13 -t cmnd/esp01/power -m on
    • mosquitto_pub -h 192.168.0.13 -t cmnd/esp01/power -m off

mosquitto mqtt config

  • config create user file

    mosquitto_passwd -c /etc/mosquitto/passwords.txt <user>
  • Config /etc/mosquitto/mosquitto.conf

    ###20190519 PES
    connection_messages true
    # If set to true, add a timestamp value to each log message.
    log_timestamp true
    log_type all
    ##
    connection bridge-home
    address vigor.nz:1883
    topic # out 0
    topic # in 0
    ###
    allow_anonymous false
    password_file /etc/mosquitto/passwords.txt
    remote_username pes
    remote_password pesmqttpasswd
    # add user # 
    ###

allow_anonymous false password_file

mqtt (last edited 2020-07-31 11:37:38 by PieterSmit)