Camera: G3 Micro
Platform: Unfi Protect v1.18.0 on Unifi Cloud Key Plus
Does anyone know if the camera reports the motion zone but HA is not passing it along?
It would be really handy to know which zone(s) where triggered, it could be used to create targeted events based on movements inside these zones.
Here is a motion event:
{
"event_type": "state_changed",
"data": {
"entity_id": "camera.dining_room",
"old_state": {
"entity_id": "camera.dining_room",
"state": "recording",
"attributes": {
"access_token": "8dcf23e3...df7c25821d",
"model_name": "AFi VC",
"brand": "Ubiquiti",
"motion_detection": "motion",
"attribution": "Powered by Unifi Protect Server",
"up_since": "2021-05-09 08:28:45",
"online": true,
"camera_id": "5fa99f5...03e701739c",
"chime_enabled": "No Chime Attached",
"chime_duration": 300,
"last_tripped_time": "2021-05-09 10:30:26",
"is_dark": false,
"mic_sensitivity": 100,
"privacy_mode": false,
"wdr_value": "1",
"zoom_position": "0",
"friendly_name": "Dining room",
"entity_picture": "/api/camera_proxy/camera.dining_room?token=8dcf...821d",
"supported_features": 2
},
"last_changed": "2021-05-09T16:51:38.781196+00:00",
"last_updated": "2021-05-09T17:36:38.432218+00:00",
"context": {
"id": "be6f09e910eec...c6da34186050b",
"parent_id": null,
"user_id": null
}
},
"new_state": {
"entity_id": "camera.dining_room",
"state": "recording",
"attributes": {
"access_token": "8dcf23e3...df7c25821d",
"model_name": "AFi VC",
"brand": "Ubiquiti",
"motion_detection": "motion",
"attribution": "Powered by Unifi Protect Server",
"up_since": "2021-05-09 08:28:45",
"online": true,
"camera_id": "5fa99f5e...03e701739c",
"chime_enabled": "No Chime Attached",
"chime_duration": 300,
"last_tripped_time": "2021-05-09 10:39:39",
"is_dark": false,
"mic_sensitivity": 100,
"privacy_mode": false,
"wdr_value": "1",
"zoom_position": "0",
"friendly_name": "Dining room",
"entity_picture": "/api/camera_proxy/camera.dining_room?token=8dcf...821d",
"supported_features": 2
},
"last_changed": "2021-05-09T16:51:38.781196+00:00",
"last_updated": "2021-05-09T17:39:42.347355+00:00",
"context": {
"id": "91f068abc56f5...267d759f0bd5e5",
"parent_id": null,
"user_id": null
}
}
},
"origin": "LOCAL",
"time_fired": "2021-05-09T17:39:42.347355+00:00",
"context": {
"id": "91f068abc56...c267d759f0bd5e5",
"parent_id": null,
"user_id": null
}
}