OpenHAB Netatmo

This article will describe the connection of a NETATMO personal weather station with OpenHAB on a CM3-Home board.

Configuration

The OpenHAB Netatmo binding tutorial is good enough but, as usual, some precaution must be followed to allow an up-and-running configuration without wasting too much time.

First of all you must connect the main unit to the Netatmo cloud. After creating your personal account on Netatmo web site you can download the app to configure the main device and the additional stations

Connecting the main unit to the computer through the supplied USB cable and starting the wizard, the devices will be registered, named and configured. As explained on the binding tutorial you have to create an app in order to open the available API for your device. This allows to get the Client ID and the Client secret needed to configure the Netatmo API thing automatically created after the binding installation. It's interesting to take a look at the API available and how many applications can be done with just a small coding. A lot of examples are proposed both in python and javascript.

When the Netatmo API thing is ONLINE (and ONLY when the thing is ONLINE) you can add the things related to your own devices.

If the Netatmo API thing is correctly installed and connected, the main and the outdoor devices parameters, configured on the Netatmo cloud, will be linked automatically to the things exposed by the binding with the correct IDs.

The name of each thing is shown in the device things list

E.g.:

netatmo:NAMain:c2ff41c3:70ee502af895:Temperature

those things must be used on the items/netatmo.items to create the items

the items can then be used on a sitemap

on an habpanel as explained on weather binding article

or in a graph view as explained on How to realize dynamic charts with OpenHAB items

Please note the graph above on the CO2 part. It's in a bedroom and the line starts after a night of sleeping. The CO2 concentration was in the alert zone. Opening the door the concentration decreases slowly in a safer zone. Then the windows have been open ventilating the room and the air quality became very healthy so quickly.

Considerations about measurements

On the Netatmo installation manual it's well explained how to arrange the sensors in order to have reliable measures. For the outdoor device it's strongly recommended to put it inside a dedicated protecting cap like, for example, this one. They are cheap, protect your device from weather and improve a lot the quality of the measures.

Guido Ottaviani (Author/Designer/Developer for electronics-firmware-robotics)
He deals with electronic design and embedded system firmware for Robotics and industrial and civil applications, as well as technical disclosure on the internet.
http://www.guiott.com - https://github.com/guiott - guido@guiott.com



Le attività del TanzoLab si svolgono ogni mercoledi sera, salvo casi speciali, dalle ore 18:30 presso i locali della Acme Systems srl e consistono in:

  • Talk monotematici a cura di professionisti in vari settori tecnologici
  • Workshop pratici su elettronica embedded, produzione e informatica
  • Progettazione e realizzazione di nuovi prodotti embedded per l'IT

Le attività vengono coordinate tramite questo sito, in cui vengono pubblicati tutti i lavori svolti o in via di sviluppo, e tramite un gruppo Telegram con cui per interagire direttamente via chat con gli altri membri.