Skip to content

use events instead of binary sensors#34

Open
devsnek wants to merge 1 commit intoMat931:mainfrom
devsnek:patch-1
Open

use events instead of binary sensors#34
devsnek wants to merge 1 commit intoMat931:mainfrom
devsnek:patch-1

Conversation

@devsnek
Copy link
Copy Markdown

@devsnek devsnek commented Feb 19, 2026

also allows setting device_class: doorbell, handy!

Copy link
Copy Markdown
Owner

@Mat931 Mat931 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Unfortunately, events are more difficult to use in Home Assistant automations and don't really work for doorbell notifications. For example when using the state trigger, I get a doorbell notification when the ESPHome device reboots. Do you have a solution for that problem?

event_type: press

binary_sensor:
events:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
events:
event:

@devsnek
Copy link
Copy Markdown
Author

devsnek commented Feb 26, 2026

I'm not sure what you mean about rebooting, I haven't observed that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants