Files
openhab/rules/salon.głośniki.rules

16 lines
343 B
Plaintext
Raw Normal View History

rule "Zasilanie głośników"
when
Item Kodi_State received update or
Item Mpd_quodlibet_StartStop received update
then
if (Kodi_State.state == "Play" || Mpd_quodlibet_StartStop.state == ON) {
sOWFS03.sendCommand(ON)
} else if (Kodi_State.state == "Stop" && Mpd_quodlibet_StartStop.state == OFF) {
sOWFS03.sendCommand(OFF)
}
end