Skip to content
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

ShellyBLU button 1 empty log #39

Closed
jeroenvdd opened this issue May 4, 2023 · 4 comments
Closed

ShellyBLU button 1 empty log #39

jeroenvdd opened this issue May 4, 2023 · 4 comments

Comments

@jeroenvdd
Copy link

Hey,
I don't know if this is a bug of the bthome integration or something on the HA side,
but the shellyBLU button1 works fine if you use automations,
but the button itself isn't seen as a switch / entity

so no actions show up in the log aswell when pressing the button,
only the battery gets updated etc

@Ernst79
Copy link
Collaborator

Ernst79 commented May 12, 2023

The BLU button is sending button events + battery sensor. So, you only get events in Home Assistant, and a battery sensor, like you are saying.

Adding binary sensor entities to Home Assistant will be difficult, as it will require not one entity, but 6 entities. One for short press, one for long press, and each for single, double or triple click. Anyway, you should be able to achieve whatever you want, with an automation. You could attach an events to a binary sensor and update it based on events.

I will look into actions showing up in the device logbook.

@jeroenvdd
Copy link
Author

thx for this, even an extra enitity 'last communication' wouldn't be to bad too :)
especially for the future. (when beacon mode is no longer beta)
cause now when my device is in beacon i need to check battery updated with some shenanigan's to find out if the button is 'home'

@Ernst79
Copy link
Collaborator

Ernst79 commented May 15, 2023

Note to myself: we have to add a logbook platform to HA to make the events visible in the logbook

Example: https://github.com/home-assistant/core/blob/dev/homeassistant/components/shelly/logbook.py

@Ernst79
Copy link
Collaborator

Ernst79 commented Jul 28, 2023

I think we can close this issue, the logbook has been added to HA

@Ernst79 Ernst79 closed this as completed Jul 28, 2023
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

No branches or pull requests

2 participants