Created At

Apr 26, 2020

Last Update

Jul 23, 2020

Platforms

HC 3

Views

4051

Download

819

Type Quick App

QuickApp module to integrate of Netatmo climate devices.

It has support for Main module, Outdoor modules and Indoor modules, Rain gauge and Smart anemometer. It creates child devices (Temperature Sensors, Humidity Sensors, CO2 Sensors, Pressure Sensors, Noise sensors, Rain and Wind sensors) automatically based on information gathered from Netatmo API.

To use it you need to import attached .fqa file into HC3 and provide credentials from Netatmo:

  • username - username for your account on Netatmo
  • password - password for account on Netatmo
  • client_id - can be generated at dev.netatmo.com
  • client_secret - can be generated at dev.netatmo.com
  • battery_allone - can be "true" or "false" - to choose between battery interface on dedicated child devices or directly on child devices

These values are in "Variables" tab on imported device. Click on Pencil, enter data for that four variables and click "Save". After that you need to create child devices. To do that you have to go to the "Edit & Preview" tab and click on "Get Devices" button.

If credentials are ok after few seconds you should have created all linked devices for found Netatmo modules. Values for these devices are refreshed every 5 minutes but QA also has a "Get Measurements" button to manually refresh data.

Important note: 5.030 or newer firmware version on HC3 is needed.

Changelog:

v2.5 - 07/2020 (Lazer)

  • Fix QuickApp crash in case weather station has no additional module

v2.4 - 07/2020 (Lazer)

  • Add variable to choose between battery interface on dedicated child devices or directly on child devices

v2.3 - 06/2020 (Lazer)

  • New device types (Rain, Wind, Gust)
  • Add battery levels monitoring (use dedicated child devices)
  • Add alive module monitoring (use Netatmo reachable property to make Fibaro devices appearing dead in the interface)
  • Optimized 10 minutes query interval 10s after Netatmo cloud update
  • Minor fixes & enhancements

v2.2 - 06/2020 (GSmart)

  • FIX: prevent crash when we doesn't get any data from Netatmo API
  • Added status info on main QA device

v2.1 - 05/2020 (GSmart)

  • Added support for unit conversion, eg. km/h to m/s
  • Further enhancements in code

v2.0 - 04/2020 (GSmart)

  • Completely redesigned
  • Getting all data in one request to Netatmo API

v1.1 - 04/2020 (GSmart)

  • Added support for Wind and Rain modules

v1.0 - 04/2020 (GSmart)

  • Initial release
  • Supported devices: Base station, Outdoor module, Indoor module

 

15 Comments,  Want to add comment please login
Bcc48fef58bb7d67f3c95e365d8c9d24

Thank you for at great QA - I discovered that a '&' sign in the Netatmo password caused my issue. It should be quotted in HC3 and it looks like a bug in HC3 LUA parser. So for now no "&" in the password in the Netatmo - with that the AQ works like a charm.

Bcc48fef58bb7d67f3c95e365d8c9d24

Nice work and thank you for sharing. I am running firmware 5.050.13 and it does not work for me. I filled out username, password, client_id and Client secret - but system are not connecting [25.10.2020] [09:18:54] [TRACE] [QA_NETATMO_519]: [25.10.2020] [09:18:55] [TRACE] [QA_NETATMO_519]: QuickApp Netatmo - Initialization [25.10.2020] [09:18:55] [TRACE] [QA_NETATMO_519]: [25.10.2020] [09:18:55] [ERROR] [QA_NETATMO_519]: Credentials data is empty! [25.10.2020] [09:18:56] [DEBUG] [QA_NETATMO_519]: Current time : 09:18:56 - Last updated values : 01:00:00 - Next loop in 30 seconds at 09:19:26 ... [25.10.2020] [09:19:26] [ERROR] [QA_NETATMO_519]: Credentials data is empty! [25.10.2020] [09:19:26] [DEBUG] [QA_NETATMO_519]: Current time : 09:19:26 - Last updated values : 01:00:00 - Next loop in 30 seconds at 09:19:56 ... [25.10.2020] [09:19:36] [TRACE] [QA_NETATMO_519]: [25.10.2020] [09:19:36] [TRACE] [QA_NETATMO_519]: QuickApp Netatmo - Initialization [25.10.2020] [09:19:36] [TRACE] [QA_NETATMO_519]: [25.10.2020] [09:19:36] [ERROR] [QA_NETATMO_519]: Credentials data is empty! [25.10.2020] [09:19:36] [DEBUG] [QA_NETATMO_519]: Current time : 09:19:36 - Last updated values : 01:00:00 - Next loop in 30 seconds at 09:20:06 ... [25.10.2020] [09:20:01] [TRACE] [QA_NETATMO_519]: [25.10.2020] [09:20:01] [TRACE] [QA_NETATMO_519]: QuickApp Netatmo - Initialization [25.10.2020] [09:20:01] [TRACE] [QA_NETATMO_519]: [25.10.2020] [09:20:01] [DEBUG] [QA_NETATMO_519]: Current time : 09:20:01 - Last updated values : 01:00:00 - Next loop in 30 seconds at 09:20:31 ... [25.10.2020] [09:20:02] [ERROR] [QA_NETATMO_519]: Wrong status '1' in response! [25.10.2020] [09:20:31] [DEBUG] [QA_NETATMO_519]: Current time : 09:20:31 - Last updated values : 01:00:00 - Next loop in 30 seconds at 09:21:01 ... [25.10.2020] [09:20:31] [ERROR] [QA_NETATMO_519]: Wrong status '1' in response! [25.10.2020] [09:21:01] [DEBUG] [QA_NETATMO_519]: Current time : 09:21:01 - Last updated values : 01:00:00 - Next loop in 30 seconds at 09:21:31 ... [25.10.2020] [09:21:01] [ERROR] [QA_NETATMO_519]: Wrong status '1' in response!

F99ea5f5d5b517bbbec852f429f7ac10

works nicely. Can you please advise how I can update icons to this app?

E9840bdfd90a42dc3edb884791715591

Worked like a charm. tx!

7c92f29637464c3936d55d604c9838bf

Quick info: using version 5.040.37 I couldn't get it to work and in debugging mode the feedback was that line 315 made the QuickApp crash. So I deleted this piece in the code: Devices[station_name] = { place = device.place.city..", "..device.place.country, modules = noOfModules, last_status_store = last_status_store } Afterwards it worked as advertised and even gave the Netatmo devices the correct city/location names.