nonsleepr / ha-eufy-security

Custom integration of Home Assistant with EufySecurity
168 stars 44 forks source link

State Changes? #8

Open k-rock opened 4 years ago

k-rock commented 4 years ago

Hi - I just installed a Eufy battery doorbell & working to integrate it with HA using https://github.com/nonsleepr/ha-eufy-security in HACS.

I want to run automations based on states changes w/ the device (when some rings the doorbell, etc.). When I look in 'developer tools', the status is 'idle' with a flurry of options (shown below)... any ideas how to know how to make an automation trigger here? I don't see the status changing from idle to anything in HA...

1009: 0
1010: 0
1011: 1
1013: 1
1015: 0
1045: 0
1056: 0
1101: 95
1131: 1
1138: 9
1142: -47
1145: 0
1148: -1
1149: -1
1150: -1
1166: 0
1167: 0
1171: 0
1172: 0
1204: ey......
1210: 112
1225: 11
1229: 100
1230: 51
1239: 11
1240: 1
1241: 1
1243: 2
1246: 1
1273: 1
1276: 3
1277: 1
1401: 100
1408: 0
1702: 1
1703: 0
1704: 1
1705: 5
1708: 51
1709: 5
1710: {"notification_motion_onoff":1,"notification_ring_onoff":1,"notification_style":3}
1714: 0
1716: 1
2111: 2
99904: 0
100000: 2
access_token: 0e84..........
model_name: T8210
brand: Eufy Security
attribution: Data provided by Eufy Security
hardware_version: T8210
serial_number: T82.....
software_version: 2.2.1.1
watermark_mode: 1
device_upgrade_now: 0
push_msg_mode: 0
friendly_name: Doorbell
entity_picture: /api/camera_proxy/camera.doorbell?token=0e8.....
supported_features: 3
surskitt commented 3 years ago

Has anyone figured out what these values are supposed to be? The only one I've figured out is 1101 being the battery, the rest never seem to change.

Like the OP, I think it would be great to be able to have automations run on either doorbell presses or motion detections.

roflware commented 3 years ago

This may help.

https://github.com/JanLoebel/eufy-node-client/blob/e6473b583ad89e38c831a3d5e788ae520f4c3acd/src/p2p/command.model.ts