How to read OpenWeather widget temp and turn on switch

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
branek
Posts: 9
Joined: 25 Oct 2015 00:47

How to read OpenWeather widget temp and turn on switch

Post by branek »

Hi all,

Newcomer here. :)

So, I started to get familiar with z-way, but few things making me confused. So, let's start with basics.

I added OpenWeather virtual sensor, and dummy switch for testing purposes. I also have Fibaro switch, but want to try on dummy first.

So, as from topic, how to read value of OpenWeather sensor, and than turn on Dummy Switch?

I tried to dig through modules codes, but no luck to find out how to read value from virtual sensor (sensorMultiline is type od OpenWeather).

Thanks for help
Branek
branek
Posts: 9
Joined: 25 Oct 2015 00:47

Re: How to read OpenWeather widget temp and turn on switch

Post by branek »

Ok, I managed to find answer. Good userModule is eaZy Logic.

This is code to put in modue:

Code: Select all

if(_z("Belgrade Weather").getLevel() < 11){
   _z("Dummy Heat On").on()
}
But if there is other examples to do the same thing, I am willing to see it. ;)

Branek
Post Reply