Config update

This commit is contained in:
2025-12-07 12:22:33 +01:00
parent 9718d9428a
commit 52d11bfff0
9 changed files with 318 additions and 222 deletions

View File

@@ -4,11 +4,11 @@
# unten: kurz: off, but 1 min bedlight
# lang: rollos zu: nur tagsueber wenn komplett offen
@event_trigger("homematic.keypress", "name == 'schlafzimmer_deckenlampe'")
def schlafzimmer_licht(channel=None, param=None, **kwargs):
up = (channel == 2)
down = (channel == 1)
long = (param == "PRESS_LONG")
short = not long
def schlafzimmer_licht(subtype=None, type=None, **kwargs):
up = (subtype == 2)
down = (subtype == 1)
long = (type == "press_long")
short= (type == "press_short")
log.info(f"Schlafzimmer knopf up {up}, long {long}")
if up and short: