eufy-ha-mqtt-bridge
eufy-ha-mqtt-bridge copied to clipboard
Supported devices
For supported devices, see the readme.
To add new devices, or new message types, make sure the messages are logged when the script is running. (You should receive them on your phone as well).
Provide an export
- Export the database:
sqlite3 -csv database.sqlite "SELECT * FROM push_payloads" > export.csv
- Open in a text editor and remove any personal info (serial number, URL to picture)
- Create a new issue with information about your device and this export
DIY
You can also help by submitting a PR with code changes. Some pointers:
- Add your device in
enums/device_type.js
- Add its capabilities in
enums/device_type.js
If you need to add a new capability / notificationType:
- Create the notificationType in
enums/notification_type.js
- In
mqtt/ha-discovery.js
, add it tobaseTopicForCapability
,payloadForCapability
andconfigurationForCapability
- In
mqtt/client.js
, starting fromprocessPushNotification
check if everything is handled correctly
Please also update the readme with the supported device
Where can I find the database file to export?
wouldn't you also need to add the new device types to ha-discovery.js?
The T8200 is still not really working for me:
- The autodiscovery does not find the entities. A
DeviceType.VIDEO_DOORBELL_2K_POWERED
is missing in the 2 if statements inha-discovery.js
- The payload is a (JSON) string instead of an object so getting the event type and attributes does not work. It still needs to be parsed. The push message is the following (note the escaped quotes):
{"pushMessage":{"id":"DC86E09F",[snip], "payload":{"doorbell":"{\"event_type\":3103, [snip]
I changed the code so that it works for me. I will try and make a commit from it. But I only need the doorbell pressed event, and I don't have any other devices, so my code might not work for others.
(edit: the escapes in the quotes were not visible)
@liquidbear99 It is in the data folder. If you used Docker, it should be where you mapped it. If you started it with npm run start
, there should be a subfolder data
in the folder where you run npm run start
.
@m-paulus That is correct, added it...
@polleke563 Will add 1. Fixing 2 might be harder when I cannot test it... Weird that part of it is a string... Can you share your code?
Glad to do so, did a PR, but was already a couple of commits behind.
Is the Eufy entry/door sensor also supported?
Not yet. If push messages are received by the app for these sensors, it might be possible to integrate them. If you can provide them, please create a new ticket.