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

Blink doorbell - Recognize presses and handle as trigger event #649

Open
thfranke opened this issue Dec 2, 2022 · 11 comments
Open

Blink doorbell - Recognize presses and handle as trigger event #649

thfranke opened this issue Dec 2, 2022 · 11 comments
Labels
feature-request Something that would be nice to have, or expands functionality help-wanted Assistance required due to lack of resources for testing or complexity

Comments

@thfranke
Copy link

thfranke commented Dec 2, 2022

Hi,

could you please add support for the Blink Doorbell.

Pressing the doorbell should be able to trigger an event in Home Assistant.

Thank you very much!
Thorsten

@fronzbot fronzbot added the feature-request Something that would be nice to have, or expands functionality label Dec 2, 2022
@fronzbot fronzbot pinned this issue Dec 2, 2022
@fronzbot fronzbot added the help-wanted Assistance required due to lack of resources for testing or complexity label Dec 2, 2022
@fronzbot
Copy link
Owner

fronzbot commented Dec 2, 2022

Thanks for submitting this! It's helpful because I can pin it and hopefully get some more eyeballs on it.

The biggest issue with doorbell integration is, quite simply, that I don't have one. So I can't do any testing, etc. So there's a heavy reliance on the community to find the API endpoints and implement code to test. Just wanted to be transparent about why the doorbells seem to lack features in this library

@gonfalon
Copy link

@fronzbot I've got a doorbell and interest in getting it to work with Home Assistant. Only problem is I haven't been able to successfully override my HA integration with changes for testing. Do you have any tips for getting that set up?

@MarkusKress
Copy link

MarkusKress commented Apr 23, 2023

You can use the door bell trigger as a trigger in an Alexa Routine. Is it possible to turn on a smart plug, wait 5 seconds and turn it off again.

There are also some arduino projects which emulates an smart home device (for example Espalexa libraray on a esp microcontroller).

Or there are commerical home automatisation tools, which offers an virtual smarthome device.

But I didn't know an other methods which works "out of the box" to trigger something in your home.

@MarkusKress
Copy link

I've working hard to find a solution. I've actually using IOBroker with an Commerical Account, which is able to create virtual devices for alexa and set it's status in IOBroker as a datapoint. Without IOBroker I found a solution for an ESP8266 Microcontroller, but not with Espalexa which seems not working anymore. I tried FauxmoESP (https://github.com/vintlabs/fauxmoESP) and this works in a Alexa routine. FauxmoESP creates a virtal Lamp, which can be used in a Alexa routine. This routine is triggered by the doorbell, and turn on the virtual lamp, waiting 5 sec, and turn the virtual lamp off. With the ESP it's possible to send the doorbell signal using MQTT to an house automatisiation software or turn on/off a PIN of the Microcontroller and with an relais in between, an old doorbell.

@gonfalon
Copy link

I ended up using Node-Red to trigger HA via an Alexa routine and a Virtual Smart Home switch.

@MarkusKress
Copy link

I switched to espalexa, which is more or less the same as fauxmoesp. fauxmoesp seems to be a little bit outdated. The esp simulates a hue lamp which can be used in a alexa routine. The routine switches the virtual lamp on, waiting 5 sec and switched it off. The esp send a message via MQTT and switches a PIN on / off. The pin can be used for a old doorbell using a relay.

@mkmer
Copy link
Contributor

mkmer commented May 20, 2023

In order to start receiving events, this API will need to subscribe to events and move to aiohttp.
This API is not easily converted to aiohttp. I have converted two other APIs (aka I have "some" experience), this one is not "friendly" to the conversion.
Also, I haven't found documentation around the subscription endpoints for blink. Anyone finds them please drop a link. They must be there, as the phone apps update very quickly.

@fronzbot
Copy link
Owner

There is no documentation outside of what users post here and in other forums. The Blink API is not open.

@abseward
Copy link

I've been trying to solve this by running a script that polls the Sync Module's get_events method and looks for button presses, then raises events.

Unfortunately the get_events method isn't working right now - I've raised an issue #757

@MarkusKress's idea about getting Alexa to trigger something downstream is inspired! I'm going to have a play with that.

@mkmer
Copy link
Contributor

mkmer commented Sep 12, 2023

I've been doing a bit of digging - it appears that the application uses FCM (Firebase cloud messaging) to receive these notifications.
When the user logs in, an FCM key is shared that is used to register for notifications.
Anyone with experience receiving push messages from FCM or can point me to a good library would be helpful.

@mkmer
Copy link
Contributor

mkmer commented Sep 14, 2023

Discussion started here: #770

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Something that would be nice to have, or expands functionality help-wanted Assistance required due to lack of resources for testing or complexity
Projects
None yet
Development

No branches or pull requests

6 participants