bropat / ioBroker.eusec

This ioBroker adapter allows to control Eufy security devices by connecting to the Eufy cloud servers.
MIT License
132 stars 17 forks source link

SoloCam E20 does not get Push-Notifications #167

Closed chmaryniok closed 2 years ago

chmaryniok commented 2 years ago

Looks like the Adapter is not working with the Eufy SoloCam E20. In the logs I can see that the Notiification is comming though, but the property motion_detected stays false.

May be there is something different in the JSON Response, so not all required valuse could be set?

Running: v0.6.2

LOG: 2021-09-08 23:40:16.184 - debug: eufy-security.0 (22184) [PushClient.handleParsedMessage] DataMessageStanza [{"tag":8,"object":{"id":"[ID]","from":"[SENDER ID]","to":"[ID-Alphanumerisch]","category":"com.oceanwing.battery.cam","appData":[{"key":"device_sn","value":""},{"key":"payload","value":"[eine ewig lange alphanumerische Zeichenfolge]=="},{"key":"station_sn","value":"[Statio_ID]"},{"key":"google.c.sender.id","value":"[SENDER ID]"},{"key":"type","value":"33"},{"key":"title","value":"eufyCam Solo"},{"key":"push_time","value":"1631137216117"},{"key":"event_time","value":"1631137227308"},{"key":"content","value":"Motion detected"}],"persistentId":"[persistentId]","ttl":3600,"sent":"1631137216124"}}] 2021-09-08 23:40:16.185 - debug: eufy-security.0 (22184) [PushNotificationService.onMessage] Raw push message received [{"id":"[ID]","from":"[SENDER ID]","to":"[ID-Alphanumerisch]","category":"com.oceanwing.battery.cam","persistentId":"[persistentId]","ttl":3600,"sent":"1631137216124","payload":{"device_sn":"","payload":{"msg_type":18,"event_type":3101,"device_sn":"[Statio_ID]","name":"Haustür","channel":0,"cipher":166,"session_id":"20210908_234027","pic_url":"","create_time":1631137224552,"trigger_time":1631137224552,"file_path":"/media/mmcblk0p1/Camera00/20210908234027.h264","push_count":1,"notification_style":1,"storage_type":1,"unique_id":"[unique_id]"},"station_sn":"[Statio_ID]","google.c.sender.id":"[SENDER ID]","type":"33","title":"eufyCam Solo","push_time":"1631137216117","event_time":"1631137227308","content":"Motion detected"}}] 2021-09-08 23:40:16.185 - debug: eufy-security.0 (22184) [PushNotificationService.onMessage] Normalized push message received [{"name":"","event_time":1631137227308,"type":33,"station_sn":"[Statio_ID]","device_sn":"","title":"eufyCam Solo","content":"Motion detected","push_time":1631137216117,"event_session":"20210908_234027","file_path":"","pic_url":"","push_count":1,"notification_style":1,"storage_type":1,"unique_id":"[unique_id]"}] 2021-09-08 23:40:16.185 - debug: eufy-security.0 (22184) [EufySecurity.onPushMessage] Received push message [{"name":"","event_time":1631137227308,"type":33,"station_sn":"[Statio_ID]","device_sn":"","title":"eufyCam Solo","content":"Motion detected","push_time":1631137216117,"event_session":"20210908_234027","file_path":"","pic_url":"","push_count":1,"notification_style":1,"storage_type":1,"unique_id":"[unique_id]"}] 2021-09-08 23:40:31.714 - debug: eufy-security.0 (22184) [Station.connect] Connecting to station [Statio_ID]... [{"p2p_did":"[p2p_did_id]","dskKey":"[key]","p2pConnectionType":"QUICKEST"}] 2021-09-08 23:40:32.212 - debug: eufy-security.0 (22184) [P2PClientProtocol.handleMsg] Station [Statio_ID] - LOOKUP_RESP - Got response [{"remoteAddress":"XXX.XXX.XXX.XXX","remotePort":32100,"response":{"responseCode":254}}]

3RROR-TINO commented 2 years ago

Das selbe bei SoloCam E40

bropat commented 2 years ago

@chmaryniok I have corrected the push notification of the new solo cams. It should work in the next release.