homeassistant-config/pyscript/licht_schlafzimmer.py

12 lines
312 B
Python
Raw Normal View History

2021-10-05 13:22:27 +02:00
@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