HA turning on a switch that isn't in the YAML

Morning, all. At a complete loss here. I added 3 more Lutron switches to my house and refreshed the module in HA.

Their entities are:

  • switch.kitchen_sink_light
  • light.kitchen_table_pendants
  • light.dining_room_chandelier

For some reason, whenever any of the lights come on in the kitchen the “light.kitchen_table_pendants” turns on. But, “light.kitchen_table_pendants” is not called in any of my YAML automations except one that just turns off all the lights if there’s no movement.

Here’s an example where “light.kitchen_table_pendants” is not listed yet it comes on:

id: '1899958999005'
alias: Kitchen lights evening time
trigger:
  platform: state
  entity_id:
    - group.kitchen
  to: 'on'
condition:
  - condition: and
    conditions:
      - condition: sun
        after: sunset
        after_offset: '-02:00:00'
      - condition: time
        before: '22:30'
action:
  - service: light.turn_on
    target:
      entity_id: light.kitchen_main_lights
    data:
      brightness_pct: 70
  - service: light.turn_on
    target:
      entity_id: light.kitchen_under_cabinet
    data:
      brightness_pct: 85
  - service: switch.turn_on
    target:
      entity_id: switch.kitchen_sink_light

I’m at a loss at even where to begin debugging since it isn’t called anywhere. Input appreciated.

Hi,
I see the trigger is a group. Can you tell us what devices/entities are in that group please.
Nick

Have you looked at the automation trace?

@nickh66 thanks for mentioning the trigger group. I changed the batteries in the Lutron sensor a few days ago. Turns out it Lutron setup went back to an all-day automatic default control of lights and it was messing with the whole system. Disabled that and it’s normalized again.

@nickrout definitely did. Burnt my mind how nothing was there to help me figure it out. Turns out it was a simple battery change and settings reverting on a sensor.

1 Like