User Tools

Site Tools


tjsupport:sonoffsolution

Differences

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

Link to this comparison view

Next revision
Previous revision
tjsupport:sonoffsolution [2019/09/29 16:18]
127.0.0.1 external edit
tjsupport:sonoffsolution [2022/08/09 15:20] (current)
Line 1: Line 1:
 +====== RFBridge Stuff ======
  
  
-=== Tasmota MQTT Commands forlearning new RF Senders ===+=== Listen on whats the rfbridge is sending === 
 +mosquitto_sub -h [mqtthost] -v -t tele/# -t stat/#
  
-# to learn no rf sender codes+=== Tasmota MQTT Commands for learning new RF Senders ===
  
-mosquitto_pub -t cmnd/rfbridge/RfKey[1-16] -m '2' +== 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 == 
 +<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]]
  
-#set user and password 
  
-mosquitto_pub -t cmnd/rfbridge/backlog -m 'MqttUser UserName; MqttPassword Passwd' 
tjsupport/sonoffsolution.1569766729.txt.gz · Last modified: 2022/08/09 15:20 (external edit)