homeassistant-config/pyscript/licht_wc.py

5 lines
95 B
Python

@state_trigger("switch.wc_licht_taster == 'on'")
def wc_licht():
switch.wc_licht.toggle()