Changed automations to pyscript

This commit is contained in:
Martin Bauer
2021-10-05 11:22:27 +00:00
parent a0e498edeb
commit ab2ab9f9d7
27 changed files with 496 additions and 2592 deletions

View File

@@ -0,0 +1,11 @@
@event_trigger("homematic.keypress", "name == 'schlafzimmer_deckenlampe'")
def schlafzimmer_licht(channel=None, param=None):
up = (channel == 1)
long = (param == "PRESS_LONG")
# TODO
# oben: kurz: orange szene
# lang: helle szene
# unten: kurz: off, but 1 min bedlight
# lang: rollos zu