Hi all
I’ve just started working with the Netatmo Presence camera’s webhooks. Previously I’ve been taking a local camera snapshot to attach to a pushover message when a person is seen at my house. The problem is that there’s a lag between the event and the recognition which means the snapshot rarely captures anything.
Using webhooks means I can get access to a URL highlighting the area of interest (vignette_url). I can’t think how to extract the ‘vignette_url’ value from the event data to be able to include in my push notification and any help with this would be gratefully received.
This is an example of an event generated by the webhook:
2019-07-04 12:48:08 DEBUG (MainThread) [homeassistant.components.netatmo] Got webhook data: {‘user_id’: ‘xx’, ‘snapshot_id’: ‘xx’, ‘snapshot_key’: ‘xx’, ‘snapshot_url’: ‘https://asnapshoturl’, ‘vignette_id’: ‘xx’, ‘vignette_key’: ‘xx’, ‘vignette_url’: ‘https://avignetteurl’, ‘event_type’: ‘animal’, ‘camera_id’: ‘xx’, ‘device_id’: ‘xx’, ‘home_id’: ‘xx’, ‘home_name’: ‘xx’, ‘event_id’: ‘xx’, ‘subevent_id’: ‘xx’, ‘message’: ‘Animal seen by Front’, ‘push_type’: ‘NOC-animal’}
And this is the automation that I’d like to add the ‘vignette_url’ to:
- id: '1539347512262'
alias: Monitor for humans in front garden
initial_state: false
trigger:
platform: event
event_type: netatmo_human
action:
- data:
data:
file:
url: http://avignetteurl
priority: 0
sound: bike
message: Humans in front garden
title: Front garden monitoring
service: notify.pushover
hide_entity: false
Thanks