kanapa: naprawienie MQTT
Problem był w konfiguracji na sonoffie, słuchał na "sonoff09/#" zamiast "/sonoff09/#"
This commit is contained in:
@@ -88,11 +88,8 @@ Number wSONOFF08 "Wifi s08 sypialnia [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:
|
|||||||
Switch rSONOFF08 "Conn s08 sypialnia [%s]" { mqtt="<[motherqtt:/sonoff08/lwt:state:MAP(espeasy_lwt.map)]" }
|
Switch rSONOFF08 "Conn s08 sypialnia [%s]" { mqtt="<[motherqtt:/sonoff08/lwt:state:MAP(espeasy_lwt.map)]" }
|
||||||
|
|
||||||
/* MQTT chwilowo ma problemy jakies */
|
/* MQTT chwilowo ma problemy jakies */
|
||||||
/*Switch sSONOFF09a "Kanapa Asia" <whites> { mqtt=">[motherqtt:/sonoff09/gpio/12:command:ON:1],>[motherqtt:/sonoff09/gpio/12:command:OFF:0]" }
|
Switch sSONOFF09a "Kanapa Asia" <whites> { mqtt=">[motherqtt:/sonoff09/gpio/12:command:ON:1],>[motherqtt:/sonoff09/gpio/12:command:OFF:0]" }
|
||||||
Switch sSONOFF09b "Kanapa Tomek" <whites> { mqtt=">[motherqtt:/sonoff09/gpio/5:command:ON:1],>[motherqtt:/sonoff09/gpio/5:command:OFF:0]" }
|
Switch sSONOFF09b "Kanapa Tomek" <whites> { mqtt=">[motherqtt:/sonoff09/gpio/5:command:ON:1],>[motherqtt:/sonoff09/gpio/5:command:OFF:0]" }
|
||||||
*/
|
|
||||||
Switch sSONOFF09a "Kanapa Asia" <whites> { http=">[ON:GET:http://sonoff09.pipebreaker.pl/?cmd=GPIO,12,1] >[OFF:GET:http://sonoff09.pipebreaker.pl/?cmd=GPIO,12,0]" }
|
|
||||||
Switch sSONOFF09b "Kanapa Tomek" <whites> { http=">[ON:GET:http://sonoff09.pipebreaker.pl/?cmd=GPIO,5,1] >[OFF:GET:http://sonoff09.pipebreaker.pl/?cmd=GPIO,5,0]" }
|
|
||||||
Switch sSONOFF09b_expected "Kanapa Tomek spodziewana"
|
Switch sSONOFF09b_expected "Kanapa Tomek spodziewana"
|
||||||
Switch sSONOFF09_ext "Kanapa przycisk" { mqtt="<[motherqtt:/sonoff09/button/ext:state:MAP(espeasy_onoff.map)]" }
|
Switch sSONOFF09_ext "Kanapa przycisk" { mqtt="<[motherqtt:/sonoff09/button/ext:state:MAP(espeasy_onoff.map)]" }
|
||||||
Number wSONOFF09 "Wifi s09 kanapa [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff09/sysinfo/wifi:state:default]" }
|
Number wSONOFF09 "Wifi s09 kanapa [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff09/sysinfo/wifi:state:default]" }
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ rule "Synchronizuj prawe kanapowe z lewymi"
|
|||||||
when
|
when
|
||||||
Item sSONOFF09a received update
|
Item sSONOFF09a received update
|
||||||
then
|
then
|
||||||
sSONOFF09b.send_update(sSONOFF09a.state)
|
/* sSONOFF09b.sendCommand(receivedCommand) */
|
||||||
|
sSONOFF09b.sendCommand(sSONOFF09a.state)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user