Reload hub triggers entity events #1629
-
After reloading a Hub within the Homematic(IP) Local Integration, all button entities are triggered (perhaps other entities as well, but I use only buttons to trigger automations). Unfortunately, the event type keeps the former value. Thus, for example, an event "short_press" is fired for a light automation and a light turns on. My challange: after a hub reload several lights turns on or off and blinds are closing or opening randomly like the whole house is going crazy :-) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
It might be helpful to add relevant code snippets. |
Beta Was this translation helpful? Give feedback.
-
Others will have the same problem, so i reopen this. |
Beta Was this translation helpful? Give feedback.
Finally, the solution is found :-)
As mentioned by SukramJ the state changes from or to "unknown". Thus, the YAML-Code for the triggered event can be supplemented with "not_from" and "not_to" as follows:
More details can be found here: https://community.home-assistant.io/t/help-with-triggering-an-automation-only-when-date-is-changed-in-the-state/630111
And it works: a reload doesn't trigger such configured actions/events.