-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Add support for Home Assistant event
entities
#24233
Conversation
2c7d7ca
to
e4e6d41
Compare
This looks like an alternative to MQTT device trigger. It's a bit unclear what exactly the pros/cons are. I think this also deserves some docs here. |
I think at this point device triggers are somewhat deprecated (not officially, but the |
Historically HA team did not agree creating entities for things that are momentary (mostly push buttons style) since they create multiple events and there was an intention to reduce the number of states stored in the DB (so you mostly don't want to store push and release of each button), since device triggers was complicated and not intuitive for most users and storing states became more efficient HA team created the event entities. Event entities are more trivial to understand, they are similar to other entities, they hold the time and event of the last event while device triggers are completely out of the state machine. What I wrote above does not eliminate the need to document the new feature 😸 |
e4e6d41
to
bee75fa
Compare
bee75fa
to
d74f170
Compare
I have added a documentation PR: Koenkk/zigbee2mqtt.io#3112 |
93e8a21
to
c8043ba
Compare
c8043ba
to
5dbcc6e
Compare
587200f
to
9681bb2
Compare
8a335b5
to
44a91ae
Compare
44a91ae
to
48dabee
Compare
Thanks! |
Adds support for Home Assistant's new-ish
event
entities. Fixes #18389.