Skip to content

Instantly share code, notes, and snippets.

@solars
Created February 4, 2017 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solars/31918bd968cea605726f5cd741803be0 to your computer and use it in GitHub Desktop.
Save solars/31918bd968cea605726f5cd741803be0 to your computer and use it in GitHub Desktop.
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