Any updates on the netatmo smoke alarm integrations?
Webhooks need to be reimplemented then smoke alarms will be functional in HA. I hope to get around to work on this for 0.106.
Sounds good, thanks for the update
Just a little heads up, webhooks landed in the current beta. So, your smoke alarms can now be used in HA.
Just installed 0.106.6, did it make into that build?
No, that is the latest stable youāve installed. The current beta is 0.107.0b2.
Here is some example code to use the new webhook based event for smoke detector automations.
- id: '1234567890123'
alias: Smoke detected
description: 'Smoke detected at home'
trigger:
- event_type: netatmo_event
platform: event
event_data:
type: smoke
action:
- data_template:
message: >
{{ trigger.event.data["data"]["message"] }}
at {{ trigger.event.data["data"]["home_name"] }}
title: Netatmo event
service: persistent_notification.create
I havenāt tested this since I donāt have access to a smoke alarm.
Juste a configuration question. To trigger this event does we have to add a specific webhook url in the netatmo configuration app, or is it registered automaticaly when we configure the netatmo integration of home assistant. I saw that there is an api āaddwebhookā to add a webhook url an iām a little bit confuse because the documentation of the integration is not clear about thisā¦
I have never, nor do I know anyone who had to put anything into the netatmo app config. So, no, it is done automatically by the integration and HA. addwebhook
does tell the API what the callback URL is dynamically based on your setting in the http
section of your config (base_url
).
OK, but when I do this i donāt see the event netatmo in the list of events. It need to be triggered once to be available ?
There is no list of available events, only a list of events that is currently listened for. And since you donāt have an automation listening for that event it does not show up in the list.
Hey, Iāve looked at a number of the threads for the Netatmo smoke detectors and webhooks but I just canāt seem to get my automation to work.
Integration:
Iāve tried this two ways.
First I go to I create my app in Netatmo then in HA Configuration - Integrations, then click the plus sign, choose Netatmo, it then takes me to the Netatmo auth page which I say yes to, then it takes me to the HA cloud page and tries to set up the integration but nothing happens (I donāt use HA Cloud).
Second way.
I create my app in Netatmo, as an FYI the page has changed and doesnāt match the instructions.
I then edit my HA configuration and add the following
netatmo:
client_id: XXXXXXXXXXXXXXXXXXXX
client_secret: XXXXXXXXXXXXXXXXXXXXXXXX
I save and restart HASS
I then go to configuration - Integrations, click on + and choose Netatmo. It then asks if I want to choose configuration.yaml or HA Cloud, I choose configuration.yaml and it takes me to the NEtatmo auth page, I say yes, then I go back to HA and it says that it is complete and I now see Netatmo listed
and in my.netatmo I see HA-test listed twice under third party applications
So far so good.
if I now go to developer tools - events and listen to netatmo_event
this is all I get
Event 0 fired 12:11 PM:
{
"event_type": "netatmo_event",
"data": {
"type": null,
"data": {
"user_id": "XXXXXXXXXXXXXXXXXXX",
"user": {
"id": "XXXXXXXXXXXXXXXXXXXXXXXX",
"email": "[email protected]"
},
"push_type": "webhook_activation"
}
},
"origin": "LOCAL",
"time_fired": "2020-05-06T11:11:18.863015+00:00",
"context": {
"id": "b02e25df995c4XXXXXXXXXXXXXXXXX",
"parent_id": null,
"user_id": null
}
}
If I do a sound test from the smoke alarm I get nothing.
my HTTP configuration is
http:
server_port: 443
base_url: https://XXXXXXXXXXXXX.duckdns.org
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
I running HA 0.109.4 and I have forwarded port 443 through my firewall to the IP address of my HA server
Iām trying to get all the lights in my house to turn on when smoke is detected.
- id: '1588089913549'
alias: Smoke Detected
description: ''
trigger:
- event_data:
type: smoke
event_type: netatmo_event
platform: event
condition: []
action:
- brightness_pct: 100
device_id: 77dff4086d644f5fb70a40c230fb68b5
domain: light
entity_id: light.hue_ambiance_candle_5
type: turn_on
- brightness_pct: 100
device_id: 5060a3d9534149bf81e195a7e2c1a025
domain: light
entity_id: light.hue_ambiance_candle_6
type: turn_on
- brightness_pct: 100
device_id: b28bd6cd164047348b37eec3eb862b2b
domain: light
entity_id: light.hue_ambiance_candle_7
type: turn_on
looking for some pointers as to what I might have missed or doing wrong. I canāt see anything in the logs either.
Thanks in advance.
To me this actually looks perfectly set up. Do you get events triggered by the camera?
Sadly I donāt have the camera, only the smoke alarm.
But thanks for confirming the setup, reassuring to know that nit is right
What Im wondering, do you need the camera in addition to get this working ? Or is it enough with only a smoke alarm ?
For testing i created another automation and used sound_test instead of smoke
Iāve tried with the sound_test but still nothing.
Iām suspecting it does need the camera to work properly.
Hi, is there any news on thisone? As Iām looking to buy 3 netatmo smoke detectors, it would be great to have them integrated within HA. You just receive the alarms, or are you also able to check the status of the battery, ā¦ ?
So far you can only use the events sent via the webhook. Unfortunately the Netatmo API does not provide much information about them.
@cgtobi, I did sucessfully set up webhook for my Netatmo camera a while back - with you help, and it has worked perfectly ever since.
However, there is of course no smoke detector info in those event messages. I guess that mean I have to add another webhook for the smoke detector?