kanapa: zmiana sonoffa basic na dual
Do drugiego gniazdka podłączona lampka po prawej, która odbija się w ekranie. Przestawienie zielonego przycisku prototypu do przełączania tylko prawej lampki, nie obu. Przy okazji też zmiana w konfiguracji ha-bridge, żeby Echo dobrze gasiło.
This commit is contained in:
@@ -4,7 +4,10 @@ rule "Gramy!"
|
||||
when
|
||||
Item Kodi_State changed to Play
|
||||
then
|
||||
/* cottonballs */
|
||||
sOWFS01.sendCommand(OFF)
|
||||
/* prawe kanapowe */
|
||||
sSONOFF09b.sendCommand(OFF)
|
||||
|
||||
Mpd_quodlibet_StartStop_expected.postUpdate(Mpd_quodlibet_StartStop.state)
|
||||
Mpd_quodlibet_StartStop.sendCommand(OFF)
|
||||
@@ -24,6 +27,7 @@ then
|
||||
/* ponizsze generuje w linijce z ifem: The name '<XFeatureCallImplCustom> == <XFeatureCallImplCustom>' cannot be resolved to an item or type.
|
||||
var OnOffType preQL = Mpd_quodlibet_StartStop_expected.state */
|
||||
var preQL = Mpd_quodlibet_StartStop_expected.state.toString()
|
||||
var preCL = sSONOFF09b_expected.state.toString() /* prawe couchlight */
|
||||
|
||||
logInfo("niegramy", "Restore QL to {}", preQL)
|
||||
/* Mpd_quodlibet_StartStop.sendCommand(preQL.toString())*/
|
||||
@@ -44,6 +48,11 @@ then
|
||||
sendCommand(sOWFS01, ON)
|
||||
}
|
||||
|
||||
logInfo("niegramy", "Restore Right Couchlights to {}", preCL)
|
||||
if (preCL = "ON") {
|
||||
sSONOFF09b.sendCommand(ON)
|
||||
}
|
||||
|
||||
sBCacheWriteback.sendCommand(OFF)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user