Hi,
Despite reading the different documentation pages and trying a bunch of different set ups, I still can’t figure out how to trigger an automation based on an event fired by my Netatmo Presence camera…
So far I have the following automation:
Did you try whether the events fire in the Developer Tools > Events section? At the bottom there is a tool to subscribe to events and show when they fire. I just gave it a quick go and it worked just fine. I just tested with event type netatmo_movement .
As usual, kudos for the reactivity!
I’ll try your suggestion to verify whether events are fired.
Once the event is caught, is there any way to retrieve the snapshot corresponding to the event? I saw there is a getCameraPicture in the pyatmo api, but I’m not sure whether a corresponding call is implemented in the netatmo component.
After spending a moment walking around in front of the camera, no event is caught by the listener… firing the event manually from the same page does work and the event is caught.
I’m not using nabu casa, but the duckdns addon with ssl on hassio. I’ve set the url in the configuration. The Boolean triggers work well, just not the events…
Following the documentation page I didn’t fill the redirect nor the webhook urls… The webhook ban status still says it’s not banned.
I’m unclear with your last answer (excuse my ignorance), do you actually use “{webhook_id}” in your setup page and automation.yaml, or do you replace it with something of your choosing?
Thanks for your help!
Thanks ! Just tried it out using curl and the HA part works and triggers the automation! I just have to wait for something to pass in front of the camera to see whether that part works as well.
As you can see, there is nothing in the webhook logs despite receiving numerous notifications on event from either the Presence or the Welcome. Have I missed something in the conf ? Should I fill the redirect url as well?
I used a workaround, with IFTTT triggering the webhook when netatmo’s camera detects a movement and although it’s not very reactive, it gets the job done. So I think this confirms that the problem is on Netatmo’s side…
Strange behavior: I created a new Netatmo account with another email, authorized access to my cameras, created an app with this new account, used the new keys and secret in HA, restarted HA, then went back to the old account with the old email. I’m now receiving the webhooks from that new account even though I’m not using the key and secret from that app anymore…
I’m happy cause I finally receive those hooks, but I find this strange.
Created an automation to inform HA presence that I’m home, based on my unique person ID code from Netatmo.
- alias: Y Occupancy On
trigger:
- entity_id: sensor.netatmo_person_id0
platform: state
to: 'fe73d1bc-2230-4de7-03a903c8940d'
- entity_id: sensor.netatmo_person_id1
platform: state
to: 'fe73d1bc-2230-4de7-03a903c8940d'
action:
- data:
payload: home
topic: location/y
service: mqtt.publish
Hey Giel, I tried to use your “binary movement sensor”
but on checking config there’s something invalid:
Invalid config for [sensor.template]: value is not allowed for dictionary value @ data['sensors']['netatmo_webhook_trigger']['device_class']. Got 'motion'. (See ?, line ?).
Are there any changes at device_class in the mean time?