Closed
Description
Before upgrading to latest release, the following worked as intended. @time_active would cause it to only trigger during the daytime, not at night. However, after the upgrade, the behavior seems to be inverted. Restarting HASS results in correct behavior until the next day.
offset = 20
SCENES = [
"switch.primary_lights",
"switch.bedroom_lights",
"switch.lower_level_lights",
]
@state_trigger(SCENES)
@time_active("range(sunrise + " + str(offset) + "m, sunset - " + str(offset) + "m)")
def auto_brighten(var_name=None, value=None):
if value=="on":
base_name = var_name.split('lights')[0]
switch.turn_on(entity_id=base_name + "bright")
Metadata
Metadata
Assignees
Labels
No labels