Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


1 Screenshot

About This File

Netatmo Weather Station suite standalone v3.5.2

 

INTRODUCTION

Netatmo Weather station suite brings complete integration of Netatmo weather station to HC2 users including rain and wind gauges and support for more than one station.

 

PREREQUISITES

  • Fibaro Home Center 2 with firmware 4.160 or greater

  • Sankotronic Lab. Emoji VD standalone (not required since v3.4)

  • Netatmo Weather station

 

FEATURES

  • Complete integration of Netatmo weather station with HC2 including rain gauge and anemometer

  • Support for multiple Netatmo weather stations

  • Support for maximum 3 additional indoor modules

  • Since version 3.5 support for Indoor main module that is missing outdoor module

  • Smart update system that follows Netatmo weather station cloud updates

  • Completely independent installation does not require any more Weather State VD or Main scene FTBE

  • Netatmo weather station measurements can be shown on Weather State VD and HC2 web GUI and mobile applications by means of Weather State VD and Weather

    provider plugin

  • VD has built in multi-language support with 27 languages included (see APPENDIX 1 for the list). VD can use HC selected language or user can select any other available

    language.

  • Easy setup for VD icons (on UHASTM compatible version is this even easier)

  • Global variables are automatically added, monitored and repaired and does not require user intervention

 

INSTALLATION

Please check provided User Manual and video from @MarcoTorino71:

 

PACKAGE CONTENT

  • Netatmo Main module VD
  • Netatmo Outdoor module VD
  • Netatmo Additional indoor module VD
  • Netatmo Wind sensor VD
  • Netatmo Rain sensor VD
  • Netatmo Weather station scene
  • Set of icons for all VD's and scene

 

UPRADE PACKAGE CONTENT v3.5.2

  • Netatmo Weather station scene
  • Updated user manual

 

 

TERMS AND CONDITIONS

Permission to use, copy, modify and distribute this software and its documentation for educational, research, personal use and non-profit purposes, without fee and without a signed licensing agreement is hereby granted, provided that the copyright notice, with "Terms and conditions" and "Disclaimer" appear in all copies, modifications and distributions. It is strictly forbidden to sell, rent, lease and/or lend this software for profit without prior consent from the Author.

 

DISCLAIMER

This software is provided by copyright owner "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the author and distributor be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Fibar Group S.A. and their employees are not responsible for support of the ABC VD. Please contact the author Sankotronic, on the Fibaro Forum, for any questions or support required.

 

VERSION HISTORY

  • 3.5.2 - Scene code changed to support Netatmo servers domain api.netatmo.com, since the other one will be removed
  • 3.5 - Suite now support Netatmo weather station indoor main module that is missing outside module
  • 3.4 - Scene code changed to use new Netatmo API grant access by replacing username and password with tokens. All VD's since v3.4 do not need Emoji VD to be installed to work properly.
  • 3.3.1 - Scene code changed to get rain amount for past 3 adn 6 hours to better support Irrigation Control VD. All VD's corrected some translations. Rain gauge VD changed labels content to display last 3 hours rain amount
  • 3.3 - Check below version description or consult User manual for more details
  • 3.2 - Corrected rain sensor code and cleaned some bugs in scene. Indoor modules corrected handling of CO2 measurement, improved updating code.
  • 3.0 – This new version is completely redesigned and made independent. Does not require Main scene FTBE and Weather State VD anymore. Updating is now synced with Netatmo cloud so readings are always up to date.
  • 2.0.2 – Code optimized and resolved some bugs
 

Here is look of the Netatmo Weather set:

2133744657_NetatmoWeatherstationsuite.thumb.png.5ff41148a5091a5a3b2b657b3f7371ad.png

 

Enjoy coding and your new Netatmo weather station suite! :-)

Sankotronic

 

Edited by Sankotronic
Uploaded new version 3.4


What's New in Version 3.5.2   See changelog

Released

Changes in version 3.5.2

  • Scene changed to use Netatmo server domain api.netatmo.com since domain api.netatmo.net is depreciated.

 

Upgrade instructions from any previous version to v3.5.2

  • Download upgrade package and copy/paste scene new code over the old one. Remember to move settings to new scene code.
  • Like 21
  • Thanks 11


User Feedback

Recommended Comments



Flash226

Posted

Please tell me where you can download Weather State VD for version 2.0.2. I apparently deleted it, but now there are problems with the variable.

Sankotronic

Posted

Hi @Flash226,

 

I recommend that you delete global variables from the old version and then install this latest version 3.3.1

Older versions than 3.0 are not available anymore. Sorry. 

Biggles_VDP

Posted

Hello, first of all, thanks for the plugin, great effort, grat work. Just facing two problems now, maybe i missed something, but can not figure it out 😕

Connection works, VD displays everything without any problems on my HC2 on PC, but becuse it is VD, I can not choose it as primary weather provider, or to choose it to display as a widget on the tablet app which I am using as a wall display to control the FIBARO itself. Did I missed something? I also installed "weather provider" plugin but still can not see VD to pick it up ... Thank you in advance for your advice, Viktor.

Sankotronic

Posted

Hi @Biggles_VDP,

 

To have temperature, humidity and wind speed on HC2 home page in upper corner, beside installing Weather provider plugin and Netatmo Weather Station suite you also need to install my Weather State & Forecast suite.

 

When all mentioned is installed then in Weather State main loop setup to use Netatmo weather station as source for some of the available measurements. At the end you will get your local temperature, humidity and wind speed on Fibaro app and Fibaro home page.

 

Also by installing Weather State & Forecast suite you will have nice weather forecast provided, depending of course which weather service you selected to use.

 

alexndr

Posted

Since yesterday I started receiving following error in the main scene: 

 

[DEBUG] 10:10:09: Standalone Netatmo weather scene version 3.4 - (c) 2018-23 Sankotronic
[DEBUG] 10:10:09: [13.07.23]: Scene run by [904] SA Main module v3.4 in room Vardagsrum
[DEBUG] 10:10:09: 2023-07-13 10:10:09.585991 [ fatal] Unknown exception: /opt/fibaro/scenes/120.lua:78: attempt to concatenate global 'refresh_token' (a nil value)

 

I'm then also bombed with errors from the wing gauge VD: 

A Wind gauge v3.4 (:arrows_counterclockwise: ) [id: 978(7)]
[ ERROR ] 10:09:39: line 41: attempt to call global \'debug\' (a nil value)

 

Any ideas? 

Diuck

Posted (edited)

Hello Sankotronic,

First of all, thank you very much for your work.
After several hours of research to find a VD allowing me to have feedback from my Netatmo station, I installed the standalone Netatmo v3.4
I ask for your help after installing the code below which allows to read the parameters of the global variable NetatmoMain "error debug" see below
Thanks in advance

 

Capture.PNG

Edited by Diuck
kweiss

Posted

Hello Sankotronic,

After the new NetAtmo API to grant access (and the lack of response from Fibaro to update of the plugin), I found your work a nice alternative.

I followed your manual but nevertheless cannot recuperate the data from NetAtmo in Fibaro HC2. The scene gives the following debug report:

 

image.png.7241e7c45fda5e0d2907acaec9f0d3ce.png

 

Any idea what went wrong ?

 

Thanks in advance !

 

Twannie

Posted

uou should start the scene by the refresh button on vd.

when scene is run manually you will get this result like the scene is telling you 

kweiss

Posted

Hi Twannie,

Thanks for your reply!

If I push the refresh button on VD, I still dont get the data. Debug VD gives following error:

 

image.png.881cf8c021ea9445ab2b3fd07214b2f9.png

 

However (as indicated in my previous message) the scene is well present...

Twannie

Posted (edited)

To me it looks like something went in the wrong order when installing
What you can try is delete the global variabeles NetatmoMain and NetatmoWeather
Then run the scene one time manually and try again (the variabeles will be created again when running the scene)

Edited by Twannie
kweiss

Posted

Thanks Twannie - problem solved -> you made my day !

  • Like 1
Christb

Posted

Hello Sanko,

I have installed v3.4 Netatmo VD in my 2 HC2 (v4..63) and get recently 2 issues:

1) For one of them I can see frequentmly all modules with data error log message.

I can fix this by just saving the Netatmo scene (without any change) and all modules are showing informations for a while:

I need to make the same procedure around every 3-4 weeks.

 

2) On the second one, I have now all modules with data error log message:

       - Saving the scene does not change anything

       - Suppressing all variables and launching the scene has not result

       - I have copied credentials from working HC2 into the scene of the second one without any success

Looking at all debug window I cannot see any error message :

Netatmo Scene :

[DEBUG] 14:39:50: Standalone Netatmo weather scene version 3.4 - (c) 2018-23 Sankotronic
[DEBUG] 14:39:50: [15.12.23]: Scene run by [741] Langey Main v3.4 in room S à Manger Langey
[DEBUG] 14:40:07: Standalone Netatmo weather scene version 3.4 - (c) 2018-23 Sankotronic
[DEBUG] 14:40:07: [15.12.23]: Scene run by [746] St Loup Main v3.4 in room Séjour

 

 

Station 1 (Langey) :

[DEBUG] 14:30:20: [15.12.23]: Station [1] updated 30 min ago
[DEBUG] 14:30:20: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:30:22: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:30:22: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:30:22: [15.12.23]: Updated VD [745] Langey Indoor v3.4
[DEBUG] 14:30:52: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:30:53: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:30:53: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:30:53: [15.12.23]: Updated VD [745] Langey Indoor v3.4
[DEBUG] 14:31:23: [15.12.23]: Station [1] updated 31 min ago
[DEBUG] 14:31:23: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:31:25: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:31:26: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:31:26: [15.12.23]: Updated VD [745] Langey Indoor v3.4
[DEBUG] 14:31:56: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:31:57: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:31:57: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:31:57: [15.12.23]: Updated VD [745] Langey Indoor v3.4
[DEBUG] 14:32:27: [15.12.23]: Station [1] updated 32 min ago
[DEBUG] 14:32:27: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:32:28: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:32:28: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:32:28: [15.12.23]: Updated VD [745] Langey Indoor v3.4
[DEBUG] 14:32:59: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:33:00: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:33:00: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:33:00: [15.12.23]: Updated VD [745] Langey Indoor v3.4
[DEBUG] 14:33:30: [15.12.23]: Station [1] updated 33 min ago
[DEBUG] 14:33:30: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:33:32: [15.12.23]: Updated VD [742] Langey Outdoor v3.4
[DEBUG] 14:33:32: [15.12.23]: Updated VD [743] Langey Rain v3.4
[DEBUG] 14:33:32: [15.12.23]: Updated VD [745] Langey Indoor v3.4

Indoor Module :

[DEBUG] 13:55:56: [15.12.23]: VD idle
[DEBUG] 13:56:26: [15.12.23]: VD idle
[DEBUG] 13:56:56: [15.12.23]: VD idle
[DEBUG] 13:57:26: [15.12.23]: VD idle

Outdoor Module :

[DEBUG] 14:43:58: [15.12.23]: VD idle
[DEBUG] 14:44:29: [15.12.23]: VD idle
[DEBUG] 14:44:59: [15.12.23]: VD idle
[DEBUG] 14:45:29: [15.12.23]: VD idle

Rain Module :

[DEBUG] 14:25:54: [15.12.23]: VD idle
[DEBUG] 14:26:24: [15.12.23]: VD idle
[DEBUG] 14:26:54: [15.12.23]: VD idle

Saint Loup Main module :

[DEBUG] 14:56:56: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:56:57: [15.12.23]: Updated VD [744] St Loup Wind v3.4
[DEBUG] 14:56:57: [15.12.23]: Updated VD [747] St Loup Outdoor v3.4
[DEBUG] 14:56:57: [15.12.23]: Updated VD [748] St Loup Indoor v3.4
[DEBUG] 14:56:57: [15.12.23]: Updated VD [749] St Loup Rain v3.4
[DEBUG] 14:57:27: [15.12.23]: Station [2] updated 57 min ago
[DEBUG] 14:57:27: [15.12.23]: SUCCESS Scene ID [35] (***) Netatmo Weather 3.4 is started
[DEBUG] 14:57:29: [15.12.23]: Updated VD [744] St Loup Wind v3.4
[DEBUG] 14:57:29: [15.12.23]: Updated VD [747] St Loup Outdoor v3.4
[DEBUG] 14:57:29: [15.12.23]: Updated VD [748] St Loup Indoor v3.4
[DEBUG] 14:57:29: [15.12.23]: Updated VD [749] St Loup Rain v3.4

Saint Loup Indoor module, Outdoor Module, Rain module and Wind module:

[DEBUG] 14:57:55: [15.12.23]: VD idle
[DEBUG] 14:58:25: [15.12.23]: VD idle
[DEBUG] 14:58:55: [15.12.23]: VD idle
[DEBUG] 14:59:25: [15.12.23]: VD idle

 

Do you have an idea of what went wrong?

[

r
 

Christb

Posted

I still have all my modules with "Update error" and try to get new tokens but this does not cahnge anything.

Is there a way to know if the Netatmo server is answering to HC2 requests?

Sankotronic

Posted

Hello @Christb,

 

Sorry for the late replay, I was away from home. From debug you provided I can see that settings in your scene are not correct. It is very important that you properly copy client_ID and client_secret from the Netatmo app that you used to generate tokens. Also to get proper tokens you must choose scope read_station and then generate and copy both tokens to the scene.

 

When you have ready all four settings: client_ID, client_secret, access_token and refresh_token then you will need first to delete old settings in the scene and paste new settings and save the scene. Next step is to delete global variable NetatmoW_scene_[scene_ID] where [scene_ID] you replace with scene ID. After deleting global variable then you need to run scene manually so that scene restore global variable with new settings. After that it should work properly.

 

If you did it properly then after running scene manually you should see this in debug window:

NetatmoWeatherstationsceneresetsettings.thumb.png.11534850ad1d37f89c90177359427588.png

 

After above is done properly, when the scene is started by Netatmo Indoor main module VD then debug will show proper connection to the Netatmo server and list all modules found for that station.

 

I just did that for my copy of Netatmo Weather Station suite standalone and it is working OK now. I had to do it because HC2 on which I have installed standalone version was turned off for long time and after starting it, stored tokens were not good any more.

 

 

  • Thanks 1
Christb

Posted

Thank you for your answer, I think I have followed your described steps 2 weeks ago and all modules are working again but it has not been the case immedialy after the change (I don't know why). All ok now.👍 

 

 

 

Christb

Posted

I have a standalone main module #3 which does not have anu other modules: when adding it, the modules seems to work but in the Scene I get a fatal error:

image.png.a4ba3642f828abf909fd191c8b9c6280.png image.png.5949f75aedbb44d1b81f98453a13b106.png

Do you confirm that the external module is manadatory to have the VD Main Empire working?

 

Sankotronic

Posted

Hi @Christb,

 

I know that I corrected UHAS version to work with Main module that is standalone (no other modules included), but seems to forget to do the same for standalone version. Will check when I'm back home somewhere beginning of April.

 

Thank you for reporting the issue.

 

  • Like 1
Christb

Posted

On 3/1/2024 at 4:03 AM, Sankotronic said:

Hi @Christb,

 

I know that I corrected UHAS version to work with Main module that is standalone (no other modules included), but seems to forget to do the same for standalone version. Will check when I'm back home somewhere beginning of April.

 

Thank you for reporting the issue.

Dear @Sankotronic, have you had time to update the Netatmo Standalone HC2 VDs for this issue?

Sankotronic

Posted

Hi @Christb,

 

Unfortunately no. My time table is quite full at the moment. Will try to squeeze it in next month. Sorry and thank you for your patience.

 

  • Thanks 1
solae

Posted (edited)

Hi @Sankotronic,

My Modules are not refreshing anymore, there are no Values in the VD.

If I hit the Refresh button of the Main Module i geht this Error:

[DEBUG] 13:37:44: [03.12.24]: ERROR Indoor base module not updated recently

 

However the Scene itself seems to work OK:

[DEBUG] 13:38:14: Standalone Netatmo weather scene version 3.4 - (c) 2018-23 Sankotronic
[DEBUG] 13:38:14: [03.12.24]: Scene run by [373] Netatmo Küche in room Küche
[DEBUG] 13:38:14: [03.12.24]: Global table data for station: 70:ee:50:32:xx:xx read sucessfuly

 

The Data in the Global Variable seems to be outdated, Currently there is about 4°C out here, but the Variable has a temperature stored of "16.7°C":

wT=json.decode(fibaro:getGlobalValue("NetatmoWeather"))
fibaro:debug(wT.netatmo[1].outm.temp)
[DEBUG] 13:33:04: 16.7

 

What could be the Problem? I also generated a new Refresh Token, no change.

Edited by solae
Sankotronic

Posted

Hi @solae,

 

Netatmo refresh token has expired. Please follow this steps:

IMPORTANT - App that you added to Netatmo developer site and use for this Netatmo standalone suite should not be used by other gateways or devices.

 

Redeemer

Posted (edited)

Hi @Sankotronic

 

I've tried to follow your step to regenerate the variable, but I'm still getting "update error", even if no other error are reported from the base station or script itself.

 

Can you help me? I also tried to reset token in dev.netatmo.com with no avail

Edited by Redeemer
Sankotronic

Posted

Hi @Redeemer,

 

First check that you have latest version installed. Netatmo has changed link to the API server.

Next, make sure that you added app on the developer site and that you have proper user ID and user secret that are needed and then generate tokens.

After pasting all the above to the scene, before saving scene and runing it manually you must delete global variable so that new tokens are properly stored.

 

 


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...