tjsupport:sonoffsolution
Table of Contents
RFBridge Stuff
Listen on whats the rfbridge is sending
mosquitto_sub -h [mqtthost] -v -t tele/# -t stat/#
Tasmota MQTT Commands for learning new RF Senders
to learn new rf sender codes
mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/RfKey[1-16] -m '2'
to show existing codes
mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/RfKey[1-16] -m '5'
set user and password
mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/backlog -m 'MqttUser UserName; MqttPassword Passwd'
switch webserver on
mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/WebServer -m '1'
switch webserver off
mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/WebServer -m '0'
query status example (bei mir)...gibt z.b. ip addresse
mosquitto_pub -h [mqtthost] -t cmnd/sonoff/30/STATUS -m “0”
SONOFF Switch Stuff
switch on directly via console
mosquitto_pub -h [mqtthost] -t cmnd/sonoff/10/POWER -m “ON”
switch off directly via console
mosquitto_pub -h [mqtthost] -t cmnd/sonoff/10/POWER -m “OFF”
Example for openhab .items file
Switch SONOFF10 "Heiz Pumpe" (HVAC) {mqtt=">[mosq:cmnd/sonoff/10/POWER:command:ON:ON],>[mosq:cmnd/sonoff/10/POWER:command:OFF:OFF],<[mosq:stat/sonoff/10/POWER:state:default]"}
Example for openhab .sitemap file
Frame label="HVAC" icon="heating" {
Switch item=SONOFF10
}
More Commands
Flashing new devices
tjsupport/sonoffsolution.txt · Last modified: by topmin
