Hi guys!
I used to have a working set-up of my 3x Netatmo Presence cameras, where in the automations I was able to filter on which camera to listen to (e.g. I want an update when a human is seen on the front garden camera, not the back garden camera). Worked like a charm, using this code in the automation:
- alias: Outdoor camera motion detected
trigger:
- platform: event
event_type: netatmo_event
event_data:
type: human
camera_id: aa:bb:cc:dd:ee:ff
condition:
condition:
Then Home Assistant did some kind of refactor of the Netatmo integration, got the cameras to work again as always, but the filtering functionality in the automation doesnt work anymore. It just ignores it (no errors in the logs, nothing).
In order to find out more, I log the complete webhook call from Netatmo:
2020-07-25T07:37:16.496494+00:00 <Event netatmo_event[L]: type=human, data=user_id=58d7, snapshot_id=5f1be, snapshot_key=3cf880, snapshot_url=https://netatmocameraimage.blob.core.windows.net/production/5f1be, vignette_id=5f1be, vignette_key=eef2c, vignette_url=https://netatmocameraimage.blob.core.windows.net/production/5f1be1, event_type=human, camera_id=aa:bb:cc:dd:ee:ff, device_id=aa:bb:cc:dd:ee:ff, home_id=58da2, home_name=Thuis, event_id=5f1be, subevent_id=5b7c1345, message=Person seen by Achterdeur, push_type=NOC-human>
It looks like the “camera_id” is now one layer deeper under ‘data’… but filtering on data.camera_id doesn’t work (or throw an error) either.
data.camera_id: aa:bb:cc:dd:ee:ff
Help?