-
Notifications
You must be signed in to change notification settings - Fork 43
MQTT Integration #43
Comments
I’ll have mine installed this weekend. I can test if you still need it. |
I would love to test this but I am having some trouble in running the example.
What do I need to do before I can run the example? |
@joepadmiraal You need to |
Thanks. When I run it now I get this error:
I got the userId by reading from the I also changed the url to Googling code 5 seems to reveal it is an authentication issue. Thanks |
Try running the following script (requires #! /usr/bin/env bash
set -x
device_sn=T8200N0XXXXXXXXX
[email protected]
# adb shell settings get secure android_id
android_id=deadc0dedeadc0de
username=eufy_$user_id
password=$email
client=android_EufySecurity_${user_id}_${android_id}
mosquitto_sub \
--cafile eufy.crt \
-C 1 -F '%p' -N \
-h security-mqtt.eufylife.com \
-p 8789 \
-t "/phone/doorbell/$device_sn/push_message" \
-u "$username" -P "$password" -i "$client" |
I ran this (replaced some details with X):
Result:
After it did not work I replaced the android_id with one from a real device which also has the app installed. Is it correct that the email address is used as password? |
Yes, that's how it's implemented in the Android app. Have you tried another host ( |
@joepadmiraal Haven't tried to MitM, however, the code in the repo and the
script works for me with wired doorbell and in the US though (used my
primary account).
I can run your case under debugger if you create a disposable account for
me (can email it to me) and aren't concerned about the privacy implications
that much.
…On Wed, Jun 3, 2020, 1:56 PM joepadmiraal ***@***.***> wrote:
Yes already tried security-mqtt-eu.eufylife.com.
I have been using the main account to test.
Did you also do this or did you use a dedicated guest account?
Did you ever manage to do a mitm with mqtt on the eufy device?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR2WQW2TS6M3P3RAMP4GYTRU2FERANCNFSM4NMM2IGA>
.
|
I figured out I mixed up two accounts. I'll create a temp account and email it to you. |
How did you execute the passport/login API to get the userid? |
I changed |
Thank you for the info on finding the user_id. Needed to modify the api.py in my usr/bin/lib directory. With the above script, are you doing this to acquire a new eufy.crt that is associated to your eufy doorbell? If I create an executable script with my user_id, serial_number and email addy I get an error that the the file cannot be found. If I copy the file eufy.crt from the src folder to my getcert.sh location then I get "connection refused not authorized." What am I potentially doing wrong? getcert.sh set -x device_sn=T8200N00XXXXXXXX username=eufy_$user_id mosquitto_sub |
It's possible that the wireless version of the doorbell relies on the FCM path like the floodlight rather than MQTT, in which case, I don't think would show any events. I can confirm the MQTT integration did work for me with a wired doorbell so it's still probably worthwhile to integrate for at least that set of users to be able to get realtime motion events for HA. |
@keshavdv i have the wired doorbell and cannot connect to the Mqtt service. Can you provide guidance? |
I deleted the certificate and ran
I rechecked it today and I am now also getting errors again when using the eu servers. Now that I think of it, another reason for why I don't get any MQTT messages could also be because I have a European model instead of a US model. |
i can sub to "#" on security-mqtt-eu.eufylife.com - (i'm having a homebase with 4 eufycams 2 and 2c, no doorbell). Like joe i'm not getting any messages either. Not sure what to expect actually :) |
Hello all Thank you for all the code you provide ! But most important for my : this problem when I try to run a python3.7 python-eufy-security-p2p/examples/test_p2p.py I got an error : Do you know how I can fix that problem ? For sure i've done previously a pip3 install python_eufy_security with succes: |
Are there any updates related to this? MQTT for the doorbell would be amazing! |
IIUC MQTT only works with wired doorbell (T8200). |
I have limited resources right now.
It would be awesome if someone integrates that package though: https://github.com/nonsleepr/python-eufy-security-mqtt
The text was updated successfully, but these errors were encountered: