diff --git a/items/wifi.items b/items/wifi.items index a40b15c..1bbb658 100644 --- a/items/wifi.items +++ b/items/wifi.items @@ -88,11 +88,8 @@ Number wSONOFF08 "Wifi s08 sypialnia [%d dB]" (wifi) { mqtt="<[motherqtt: Switch rSONOFF08 "Conn s08 sypialnia [%s]" { mqtt="<[motherqtt:/sonoff08/lwt:state:MAP(espeasy_lwt.map)]" } /* MQTT chwilowo ma problemy jakies */ -/*Switch sSONOFF09a "Kanapa Asia" { mqtt=">[motherqtt:/sonoff09/gpio/12:command:ON:1],>[motherqtt:/sonoff09/gpio/12:command:OFF:0]" } +Switch sSONOFF09a "Kanapa Asia" { mqtt=">[motherqtt:/sonoff09/gpio/12:command:ON:1],>[motherqtt:/sonoff09/gpio/12:command:OFF:0]" } Switch sSONOFF09b "Kanapa Tomek" { mqtt=">[motherqtt:/sonoff09/gpio/5:command:ON:1],>[motherqtt:/sonoff09/gpio/5:command:OFF:0]" } -*/ -Switch sSONOFF09a "Kanapa Asia" { 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" { 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 sSONOFF09_ext "Kanapa przycisk" { mqtt="<[motherqtt:/sonoff09/button/ext:state:MAP(espeasy_onoff.map)]" } Number wSONOFF09 "Wifi s09 kanapa [%d dB]" (wifi) { mqtt="<[motherqtt:/sonoff09/sysinfo/wifi:state:default]" } diff --git a/rules/salon.kanapowe.rules b/rules/salon.kanapowe.rules index f14d062..87754a5 100644 --- a/rules/salon.kanapowe.rules +++ b/rules/salon.kanapowe.rules @@ -4,6 +4,7 @@ rule "Synchronizuj prawe kanapowe z lewymi" when Item sSONOFF09a received update then - sSONOFF09b.send_update(sSONOFF09a.state) +/* sSONOFF09b.sendCommand(receivedCommand) */ + sSONOFF09b.sendCommand(sSONOFF09a.state) end