I made this test automation to check what caused my lights to change (for configuring input_boolean in other automations)
I regularly use the Google Home widget on my phone to turn on/off the lights. Now I found out that when I turn off the lights, the action is recognized as a physical switch, but when I turn the lights ON, they are seen as an automation but all 3 lights have a different parent_id, when I only used 1 action (turn off light group in Google Home).
This seems super weird. Does anyone know how this works?
I have no idea how the Google Home integration works, but to me the conclusion would be that it sends three separate actions/generates three different events/does three whatever when talking to HASS.
I found out that when a script is triggered with repeat while loops, every time a loop runs, it generates a context_id, but it’s the same for each loop.
So I think I’d have to figure out how to detect the non-unique context_id’s and only react to those.