I tried to use some simple automations the last days and recognized an odd behaviour:
During system start, some lights are activated - lights which are used in three automations. And that happens even if the trigger-criterias are not met. I will investigate this a little bit further and put some data into the recorder (im using include in the recorder) but can you confirm that there is no main mistake in the code. Do i overlook something?
At first sight I don’t see any problems with this.
Do you have these lights in groups? If an automation would act on the group, then it wouldn’t be directly obvious by searching for the entities in the automations.
Another option would be, that you still have an automation on the CCU that gets triggered when Home Assistant starts (like a virtual button press).
In any case, for the storage room light I would switch to “Direktverknüpfungen” if both sensor and actor are HomeMatic. I’m aware that causes a split-brain configuration. But it has the benefit that it will keep working even if Home Assistant is down for some reason. That’s why I chose to use “Direktverknüpfungen” for my basic infrastructure automations. I only use HA for automations that include 3rd party data, like the state of the sun in your first automation.
I’ll also check the groups. That’s a good hint. Thank you!
I solved the problem of the “storage room light” automations exactly as you described with “Direktverknüpfungen” at the moment. Unfortunately this is not possible with the sun and harmony triggered first automation “media light”.
Here is the update regarding that topic. I checked Logs etc. and for a short time i thought i got it. I recognized that the connection is lost during the night (as shown in the image).