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:10]
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 ===
Line 7: Line 10:
  
 mosquitto_pub -h [mqtthost] -t cmnd/rfbridge/RfKey[1-16] -m '2'  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 == == set user and password ==
Line 18: Line 24:
  
  
-== Status abfragen (bei mir)...gibt z.b. ip addresse ==+== query status example (bei mir)...gibt z.b. ip addresse ==
 mosquitto_pub  -h [mqtthost] -t cmnd/sonoff/30/STATUS -m "0" 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.1633443018.txt.gz ยท Last modified: 2022/08/09 15:20 (external edit)