I have an Automation that in case of fire turns all the lights to 100% and white light, is there a possibility to set the lights back to both correct state and brightness as before the automation ran? Hopefully without setting up helpers for all the lights(as new lights might be added to the group)
Does this exist in some history, or do i need to fetch the current brightness/color temp at the start of the automation and save it in a variable to set it back after?
action: light.turn_on
metadata: {}
data:
brightness_pct: 100
color_temp_kelvin: 6500
target:
label_id: fire_light