Lights triggered even if conditions are off?

Good evening/night/morning whatever it may be for you. I’m a bit perplexed here. I don’t think this issue was occurring originally based on the logbook. But, for some time my late night triggers to adjust the brightness if the lights are already on is triggering the lights to come on. Is there something amiss in the below -or- did an update change how something works that I can’t figure out?

- id: '9651829359999006'
  alias: Kitchen lights late night set brightness if lights already on weekend
  trigger:
    platform: time
    at: '22:45:01'
  condition:
  - condition: or
    conditions:
    - condition: state
      entity_id: light.kitchen_main_lights
      state: 'on'
    - condition: state
      entity_id: light.kitchen_under_cabinet
      state: 'on'
    - condition: time
      weekday:
      - fri
      - sat
  action:
    - parallel:
        - service: light.turn_on
          target:
            entity_id: light.kitchen_main_lights
          data:
            brightness_pct: 20
        - service: light.turn_on
          target:
            entity_id: light.kitchen_under_cabinet
          data:
            brightness_pct: 40
        - service: switch.turn_on
          target:
            entity_id: switch.kitchen_sink_light

Tonight, for example, the lights were off at 22:45 but at 22:45:01 they were turned on by this trigger.

Input appreciated.

Uggggh the OR with weekday/weekend added in. Any thoughts on having the light statuses as OR and the time as an AND condition? Not sure how to properly add two such structures.

(main or cabinet lights on) and (Friday or Saturday):

  condition:
  - condition: or
    conditions:
    - condition: state
      entity_id: light.kitchen_main_lights
      state: 'on'
    - condition: state
      entity_id: light.kitchen_under_cabinet
      state: 'on'
  - condition: time
    weekday:
    - fri
    - sat
1 Like

Thanks much! I’m glad I saw my error but doesn’t mean I had the throughput to comprehend an easy fix. :slight_smile: