#Scene doesn‘t set parent_id

1 messages · Page 1 of 1 (latest)

sand tinsel
#

Hi everyone,
I’m trying to disable my light automation whenever the lights are manually adjusted through HomeKit (Siri) or the Hue app.

I found that the simplest approach is to trigger an automation when the lights change, then check if the trigger’s context has no parent_id. If there’s no parent_id, it means the change wasn’t caused by automation. In such cases, I can activate an automation override helper switch to stop further automation.

This method works when the lights are changed directly. However, I’ve noticed that when an automation activates a scene, there’s also no parent_id, even though the change was triggered by the automation.

Is it true that scenes don’t set parent_ids?
Is there another way to identify if a light was changed by a scene that was triggered by an automation?