0

Filling the Weather Display of the HomeCenter 2 with your own Values

by boomx22. September 2016

In this article we are going to present you a virtual device, with whom you can change the weather display on your Fibaro HomeCenter 2 by own values (for instance caused by the values of a netatmo outside-module or the data of the Z-Weather). Further information below.

Let us start at the beginning: The API of the yahoo-weather service experienced some changes in the early past, due to them, no updates of the weather display were implemented anymore. The display and the triggering of scenes, which access the weather data (Small LUA Scripts Part 2: storm warning) has not been functioning from that moment on. With the update to firmware version 4.082 Beta, Fibaro changed the service and does now use the service from yr.to for weather data.

Weather display on the web interface

Weather display on the web interface

Alternative Weather Display

There are also Fibar-Users (Yes, I am one of them ;)), that do not directly operate the Update-Button, as soon as a new update was released by Fibaro. In order for these users to also enjoy updated weather data, we downloaded a prepared virtual device, which drags and processes the weather data from the OpenWeatherMap, from the official Fibaro forum (At this place a big thank you to Jakub & Damian, who programmed the basic functions) and next to translating it into German also conducted some Fine-Tuning. Optional, the data can be integrated into a netatmo outside module/anemometer or into a Z-Weather Module. You can find the scripts needed for this purpose on here:

Installation of the VD

After importing the VD, some adjustments have to be done on it. On the one hand, the data for the connection to Openweather have to be entered to the script. You can receive the API-Key from the website. In my case, the activation of the API-Key took a couple of hours. So do not be surprised, if the script ejects some error messages at first. Once you receive the key, you have to enter it into the following lines. The remaining information should be self-explaining:

In case you want to additionally use the inclusion of netatmo-values, resp. of Z-Weather, further changes have to be undertaken in the following lines:

After the import, options are deactivated. In case you should want to use the inclusion, the respective values have to be set on true. The ID of the thermostat is also needed for the integration of netatmo. You can find it in the settings of the module. The ID of the humidity sensor will automatically be identified.

If you want the wind speed of a present netatmo anemometer or the Z-Weather to be displayed on the weather display, you need to set the local variable “wind_was” on true, as described above. The already posted scenes already record the wind speed in a global variable. Depending on the used module, the name of the variable has to be entered additionally. In case of the netatmo anemometer this would be windstaerke and in case of Z-Weather wind_zweather. If you are using another name for your variable, you can also enter that one.

As far as you have set up everything, you can check if everything is working via the debug-mode of the button. It should look as on the picture:

 

Debug of the “Info”-Button.

Debug of the “Info”-Button.

 

Additional Scene

In order for the weather display to update regularly, an additional scene has to be set up, which then presses the Info-Button of the VD. Therefore you can create the following scene:

This scene virtually presses the Button 7 of the VC with the ID 283 every 10 minutes. Of course you need to deposit the ID of your imported VD for this purpose. You can find it on the Browser-URL-Bar, when editing the VD:

The ID 283 is the ID of the VD

The ID 283 is the ID of the VD

Next to the download for the virtual device (DOWNLOAD) we created a matching icon for the VD on the web surface of the Fibaro HomeCenter 2 for you. You can find it on here: (Also has to be set up for the “Refresh”-Button of the VD):

 

openweather vd icon

openweather vd icon

 

And now have fun with the new and current values :) By the way, this is how the VD looks at the end:

vd_hc2

VD in the Fibaro HomeCenter 2

 

About The Author
boomx
boomx

Leave a Response