The code I shared is from my template.yaml file. The other stuff in that file is not relevant for you.
Looking at your code from template.yaml you mix up the new and the old (legacy) way of defining templates. You have value_template in your code and that’s legacy stuff. So I doubt if your templates are actually working when you put them in the template.yaml file.
Start with commenting out all code you have in template.yaml and add my code like below:
If that works add your previous stuff, but again I don’t think you have those in the proper place and you should have those as part of binary_sensor:. Your code also starts with binary_sensors which is not correct either.
Please have a good look at the links I shared earlier as there all the stuff regarding the new and legacy template methods is explained. There are plenty examples there which you can use.
And if formatation is wrong that will be related to identation, you can use Visual Studio Code or an online yaml checker for that.
The camera_id and device_id are part of another data indendation, so try the code below.
And you can also use developer tools and then events and monitor netatmo_event to show the data you are looking for.
# Netatmo human
- trigger:
- platform: event
event_type: netatmo_event
event_data:
type: human
data:
camera_id: 70:xx:xx:xx:x:a2
device_id: 70:xx:xx:xx:x:a2
Hi, new HA / Netatmo user.
Just one rookie question as Netatmo app does not sets presence at home quite accurately… is it possible to send to Netatmo app HA presence status?
I am planning to buy the alarm and would not like to have false triggers while home.
THX
Hello guys, I spent whole day with reading all the discussions here, but I am stuck, because I didn’t get any data when I start listening the “netatmo_event” and have no idea, what I am doing wrong.
I am running with latest HA with Nabucasa + Netatmo integration, where I can see all my Netatmo devices (for example camera image works great and always „streaming“ to HA).
I’ve also set Netatmo dev account (and created app by the tutorial) + added the Netatmo Application Credentials (Oauth and unique key). I have no Netatmo errors in log, but when I go to Developer Tools – Events and type “netatmo_event” into Listen to Events (and start listening), I didn’t get any data.
And when I go to Services in Developer Tools and select “netatmo.unregister_webhook” and click on Call Service, and then run “netatmo.register_webhook”, I got success message.
Could please anyone help me? I am going away from my home for 8 weeks (in next few days) and I will be really happy if I can set events based on data from the camera.
I’ve also created this automation just for test purpopes (sent notification when Netatmo camera detect a human move):
alias: "Netatmo Presence move test"
trigger:
- platform: event
event_type: netatmo_event
event_data:
type: human
id: 70:ee:xx:xx:xx:xx
condition: []
action:
- service: notify.notify
data:
title: It works
message: Maybe, one time, it will…
mode: single