Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
blinds go down, then up again?
# main.items
Group all
Group eg
Group:Rollershutter:OR(UP, DOWN) eg_rolladen "Rollladen EG [(%d)]" <rollershutter> (eg)
# main.rules
rule "toggle_eg_rolladen"
when Item eg_rolladen received command
then
if (eg_rolladen.state != UP) // item OFF or uninitialized
eg_rolladen.sendCommand(UP)
else
eg_rolladen.sendCommand(DOWN)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment