#Logbook inconsistent in logger of automation

4 messages · Page 1 of 1 (latest)

sudden roost
#

I have an automation that is triggered by sunrise and it turns off two lights. The logbook entry for each of the lights is different. For the "Outdoor lawn lamp" I get: Turned off. For the "Outdoor front porch" I get: Turned off triggered by state of Outdoor lawn lamp turned off. No where in the logbook is there a mention of the automation that triggered the two entities to turn off.

Is this expected behaviour? A bug?

abstract nymph
#

I'm vaguely remembering that this has something to do with context.

Does your automation turn off outdoor lawn lamp first, and front porch second?

#

I feel like I saw somewhere once in the code related to state change context some kind of hack where if two events occurred within like 1-2 second of each other, the context of the second event was assumed to be from the first event. I'd probably be hard to find that again.

sudden roost
#

The automation has a single turn_off call with porch and lawn lamp, in that order.