Adaptive Lighting Automation: Resetting Manual Control After 1 Hour

I’m currently working on setting up an automation in Home Assistant to reset the manual control flag for my Adaptive Lighting integration after a certain period of inactivity. Here’s what I’ve got so far and where I’m stuck.

Setup Details

  • Home Assistant Version: 2025.7
  • Adaptive Lighting Instance: AL FoH
  • Lights Controlled: Zigbee (ZHA) two-bulb pairs (dining_room_lights_z, livingroom_lights_z, bedroom_lights_z, office_lights_z)

Goal

I want the automation to reset the manual_control flag for the Adaptive Lighting instance after 1 hour of inactivity. This means if I manually adjust the lights, the system should automatically revert to its scheduled settings after 60 minutes.

Current Automation Configuration

Here’s the YAML configuration I’m working with:
yaml
alias: “Adaptive lighting: reset manual_control after 1 hour”
mode: parallel
trigger:
platform: event
event_type: adaptive_lighting.manual_control
variables:
light: “{{ trigger.event.data.entity_id }}”
switch: “{{ trigger.event.data.switch }}”
action:

  • delay: “01:00:00”
  • condition:
    template
    value_template: “{{ light in state_attr(switch, ‘manual_control’) }}”
  • service: adaptive_lighting.set_manual_control
    data:
    entity_id: “{{ switch }}”
    lights: “{{ light }}”
    manual_control: false

Challenges

  1. Understanding Variables: I’m not entirely clear on how light and switch variables are being populated. Should switch refer to the Adaptive Lighting instance (switch.adaptive_lighting_al_foh)?
  2. Entity ID Confusion: The lights are part of Zigbee groups, not HA Helper Light Groups. Does this affect how the automation targets them?
  3. Testing and Debugging: I’m unsure how to test this effectively. Should I manually trigger the event to see if the automation works?

Seeking Help

  • Variable Clarification: What exactly should light and switch represent in this context?
  • Entity Targeting: How do I ensure the automation correctly targets the Zigbee group lights?
  • Testing Advice: Any tips on how to debug this automation would be incredibly helpful.

If anyone has successfully implemented a similar automation or can shed light on these variables, I’d greatly appreciate your insights!

Best regards,
[Your Name]