wc: wiatrak sterowany przez HTTP

Ma wgrany firmware, w ktorym akurat nie dziala MQTT.
Dotychczas sterowałem przez curla w cronie, ale przeciez
openhab ma bindingi http.
This commit is contained in:
2020-11-26 07:10:58 +01:00
parent 6faa34220e
commit db500eefa1
2 changed files with 10 additions and 8 deletions

View File

@@ -65,8 +65,9 @@ Switch sSONOFF06KEY "Włącznik hall przy drzwiach wejściowych [%s]" { mqtt="<
Number wSONOFF06 "Wifi s06 przedpokój wejście [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff06/wifi/:state:default]" }
Switch rSONOFF06 "Conn s06 przedpokój wejście [%s]" { mqtt="<[motherqtt:/sonoff06/lwt:state:MAP(espeasy_lwt.map)]" }
Switch sSONOFF07 "Wiatrak WC" <fan> { mqtt=">[motherqtt:/sonoff07/gpio/12:command:ON:1],>[motherqtt:/sonoff07/gpio/12:command:OFF:0]" }
/* do czasu wymiany firmware */
/* Switch sSONOFF07 "Wiatrak WC" <fan> { mqtt=">[motherqtt:/sonoff07/gpio/12:command:ON:1],>[motherqtt:/sonoff07/gpio/12:command:OFF:0]" }*/
Switch sSONOFF07 "Wiatrak WC" <fan> { http=">[ON:GET:http://sonoff07.pipebreaker.pl/?cmd=GPIO,12,1] >[OFF:GET:http://sonoff07.pipebreaker.pl/?cmd=GPIO,12,0]" }
/*Number dSONOFF07LED "Wiatrak LED [%s]" { mqtt=">[motherqtt:/sonoff07/pwm/13:command:*:default]" } */
Number wSONOFF07 "Wifi s07 wiatrak wc [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff07/sysinfo/wifi:state:default]" }
Switch rSONOFF07 "Conn s07 wiatrak wc [%s]" { mqtt="<[motherqtt:/sonoff07/lwt:state:MAP(espeasy_lwt.map)]" }