User Tools

Site Tools


tjsupport:sonoffsolution

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tjsupport:sonoffsolution [2021/10/05 16:03]
topmin
tjsupport:sonoffsolution [2022/08/09 15:20] (current)
Line 1: Line 1:
 +====== RFBridge Stuff ======
 +
 +
 === Listen on whats the rfbridge is sending === === Listen on whats the rfbridge is sending ===
-mosquitto_sub -v -t tele/# -t stat/#+mosquitto_sub -h [mqtthost] -v -t tele/# -t stat/#
  
 === Tasmota MQTT Commands for learning new RF Senders === === Tasmota MQTT Commands for learning new RF Senders ===
  
-to learn no rf sender codes+== to learn new rf sender codes ==
  
 mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/RfKey[1-16] -m '2'  mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/RfKey[1-16] -m '2' 
  
-#set user and password+== 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' 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 ==
 +<code>
 +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]"}
 +
 +</code>
 +== Example for openhab .sitemap file ==
 +<code>
 +Frame label="HVAC" icon="heating" {
 +     Switch item=SONOFF10
 +}
 +
 +</code>
 +====== More Commands ======
 +https://tasmota.github.io/docs/Commands/#rf-bridge
 +
 +====== Flashing new devices ====== 
 +[[:tasmotabuild]]
 +
 +
tjsupport/sonoffsolution.1633442638.txt.gz · Last modified: 2022/08/09 15:20 (external edit)