ha-ezviz
ha-ezviz copied to clipboard
[Feature Request] MQTT based events support
Please add mqtt events support (such as PIR events or door bell button event) instead of constantly query for alarm list in the coordinator.
Constant device querying (probably) dramatically increase battery usage (from 100 to 20 in 17 hrs (!)).
Mine DP1C PIR and door bell push events examples:
connected OK Returned code= 0
Subscribed: 1 (2,)
{'F2643xxxx': {'id': 1520726771058671616, 'alert': 'DP1C(F2643xxxx) PIR Alarm(2022-05-01 16:28:04)', 'time': '2022-05-01 16:28:04', 'alert type': '10000', 'image': 'https://isgp.ezvizlife.com/v3/alarms/pic/get?fileId=20220501112806-F2643xxxx-1-10000-2-1&deviceSerialNo=F2643xxxx&cn=1&isEncrypted=1&isCloudStored=0&ct=4&lc=7&bn=4_alialarm-sgp&isDevVideo=0'}}
{'F2643xxxx': {'id': 1520726847302729728, 'alert': 'Your doorbell is ringing', 'time': '2022-05-01 16:28:26', 'alert type': '0', 'image': None}}