Netatmo
The Netatmo integration platform is the main integration to integrate all Netatmo related platforms.
There is currently support for the following device types within Home Assistant:
Configuration
To add the Netatmo integration to your Home Assistant instance, use this My button:
Netatmo can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.
If it wasn’t discovered automatically, don’t worry! You can set up a manual integration entry:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the Add Integration button.
-
From the list, select Netatmo.
-
Follow the instructions on screen to complete the setup.
Extra configuration of the integration
Configuration of Netatmo public weather stations is offered from the front end. Enter the Netatmo integration and press the “CONFIGURE”, then set “Area name” for new area.
In the dialog, it is possible to create, edit and remove public weather sensors. For each area a unique name has to be set along with an area to be covered and whether to display average or maximum values.
To edit an existing area, enter its name and follow the dialog.
Camera
The netatmo
camera platform is consuming the information provided by a Netatmo Smart Indoor, Outdoor and Netatmo Smart Video Doorbell camera. This integration allows you to view the current live stream created by the camera (exception: video doorbell).
The doorbell is currently not supported with the Home Assistant Cloud link mode (configured in the integration). Please use a Netatmo dev account. Note that: if you have already created the Netatmo integration, you must remove it and configure it with the Netatmo dev account as explained in the previous link. Then you will see a Smart Doorbell device with a camera sensor.
Climate
The netatmo
thermostat platform is consuming the information provided by a Netatmo Smart Thermostat, Smart Modulating Thermostat and Netatmo Smart Radiator Valve. This integration allows you to view the current temperature and control the setpoint.
Cover
The netatmo
cover platform provides support for Bubendorff shutters.
Light
The netatmo
light platform is consuming information provided by a Netatmo Smart Outdoor camera and requires an active webhook. This integration allows you to turn on/off the flood lights.
It further provides support for Legrand/BTicino dimmers.
Sensor
The netatmo
sensor platform is consuming the information provided by a Netatmo Smart Home Weather Station a
Netatmo Smart Indoor Air Quality Monitor device or Netatmo Public Weather Stations.
Switch
The netatmo
switch platform provides support for Legrand/BTicino switches and power plugs.
Services
Set Outdoor Camera Light Mode
set_camera_light_mode
Set the outdoor camera light mode. This requires an entity id and a valid state.
Set Schedule
set_schedule
Set the heating schedule. This requires an entity id and a schedule name.
Set Person Home
set_persons_home
Set a list of persons as at home. Person’s name must match a name known by the Netatmo Smart Indoor Camera.
Set Person Away
set_person_away
Set a person away. If no person is set the home will be marked as empty. Person’s name must match a name known by the Netatmo Smart Indoor Camera.
(Un-)Register Webhooks
register_webhook
and unregister_webhook
Service to manually register and unregister the webhook.
Webhook Events
The Netatmo backend sends instant events to Home Assistant by using webhooks which unlocks improved responsiveness of most devices with the exception of Netatmo Smart Home Weather Station, Netatmo Smart Indoor Air Quality Monitor or Netatmo Public Weather Stations.
Netatmo webhook events have known issues with Home Assistant Cloud Link. It is therefore recommended to use an individual development account.
To be able to receive events from Netatmo, your Home Assistant instance needs to be accessible from the web over port 443
. To achieve this you can either use your Nabu Casa account or for example Duck DNS (Home Assistant instructions). You also need to have the external URL configured in the Home Assistant configuration.
Events coming in from Netatmo will be available as an event in Home Assistant and are fired as netatmo_event
, along with their data. You can use these events to trigger automations.
You can find the available event types at the official Netatmo API documentation.
Example:
# Example automation for webhooks based Netatmo events
- alias: "Netatmo event example"
description: "Count all events pushed by the Netatmo API"
trigger:
- event_data: {}
event_type: netatmo_event
platform: event
action:
- data: {}
entity_id: counter.event_counter
service: counter.increment
Example:
# Example automation for Netatmo Welcome
- alias: "Motion at home"
description: "Motion detected at home"
trigger:
- event_type: netatmo_event
platform: event
event_data:
type: movement
action:
- data:
message: >
{{ trigger.event.data["data"]["message"] }}
at {{ trigger.event.data["data"]["home_name"] }}
title: Netatmo event
service: persistent_notification.create
Example:
# Example automation for Netatmo Presence
- alias: "Motion at home"
description: "Motion detected at home"
trigger:
- event_type: netatmo_event
platform: event
event_data:
type: human # other possible types: animal, vehicle
action:
- data:
message: >
{{ trigger.event.data["data"]["message"] }}
at {{ trigger.event.data["data"]["home_name"] }}
title: Netatmo event
service: persistent_notification.create
Example:
# Example automation
- alias: "Door or window open or movement"
description: "Notifies which door or window is open or was moved"
trigger:
- event_type: netatmo_event
platform: event
event_data:
type: tag_open
- event_type: netatmo_event
platform: event
event_data:
type: tag_big_move
- event_type: netatmo_event
platform: event
event_data:
type: tag_small_move
action:
- data:
message: >
{{ trigger.event.data["data"]["message"] }}
title: Netatmo event
service: persistent_notification.create
Development / Testing with your own client ID
To enable the Netatmo integration with your own development credentials, you have to declare a new application in the Netatmo Developer Page.
Sign in using your username and password from your regular Netatmo account.
In your Netatmo Application configuration, do not enter a ‘redirect URI’ or a ‘webhook URI’. The ‘webhook URI’ is automatically registered by this integration based on the external URL configured in the Home Assistant configuration.
See Application Credentials for instructions on how to configure your Client ID and Client Secret, then enable Netatmo through the integrations page.
Menu: Settings -> Devices & Services.
Click on the +
sign to add an integration and click on Netatmo.
After completing the configuration flow, the Netatmo integration will be available.
Troubleshooting
Receiving events
To confirm your Home Assistant instance is receiving events via webhooks, you can listen to netatmo_event
in Developer Tools -> Events.
Light
If the lights show as unavailable the issue usually is that webhook is banned by Netatmo. To solve that unregister the webhook, go to the Netatmo Developer Page to unban your webhook and then register the webhook.