From 0614838bbcb3aa3871c7b530cbe2e68bdc2cdcd7 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Sat, 21 Oct 2023 16:51:12 +0200 Subject: [PATCH] =?UTF-8?q?prototyp:=20czerwone=20do=20prze=C5=82=C4=85cza?= =?UTF-8?q?nie=20kociej=20grza=C5=82ki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lampka stołowa przestała działać już jakiś czas temu --- rules/d1mini03.prototyp.rules | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rules/d1mini03.prototyp.rules b/rules/d1mini03.prototyp.rules index 2554f32..daca757 100644 --- a/rules/d1mini03.prototyp.rules +++ b/rules/d1mini03.prototyp.rules @@ -26,10 +26,10 @@ rule "d1m03 przełączaj czerwone" when Item sD1MINI03_button_red received update then - if (sSONOFF02.state == ON) { - sSONOFF02.sendCommand(OFF) + if (sSONOFF04MASTER.state == ON) { + sSONOFF04MASTER.sendCommand(OFF) } else { - sSONOFF02.sendCommand(ON) + sSONOFF04MASTER.sendCommand(ON) } end @@ -38,12 +38,12 @@ rule "d1mini03 synchronizuj kolorki" when Item sSONOFF09b received update or Item Mpd_quodlibet_StartStop received update or - Item sSONOFF02 received update + Item sSONOFF04MASTER received update then sD1MINI03_light_green.sendCommand(sSONOFF09b.state.toString()) sD1MINI03_light_yellow.sendCommand(Mpd_quodlibet_StartStop.state.toString()) - sD1MINI03_light_red.sendCommand(sSONOFF02.state.toString()) + sD1MINI03_light_red.sendCommand(sSONOFF04MASTER.state.toString()) end