Help with condition for Adaptive Lighting

Hello. I’m trying but failing miserably to follow the example below to check if my light entity is part of the “manual control” attribute of adaptive lighting. I like help converting my example to use as a condition in an automation. Testing in dev tools currently

Enity ID with attribute “manual control”:

switch.adaptive_lighting_island

My test in template editor just says “trigger” not defined

value_template: "{{ trigger.event.data.light.breakfast in state_attr (trigger.event.data.switch, 'manual control') }}"

Example:

‘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

The “trigger” variable is only available in triggered automations, i.e. neither in the template debugger nor when doing a manual “Run” of the automation.

ok figured it out with google AI

{{ 'light.breakfast' in state_attr('switch.adaptive_lighting_island', 'manual_control') }}