This object is in archive! 

Ruled based on weather from virtual weatherstation

Dag Ludvigsen shared this question 6 years ago
Answered

Helo.


Trying to create a rule that will turn on heating when the weatherforecast is snow or rain.

Tried to make a rule as the attached one, but it is not working.


Is there someone that can give me a push in the right direction?

Replies (4)

photo
1

Well, the rule will only start when you turn on the device in the WHEN block. I would modify the rule to stat with ANY state and then insert another IF where insert this device in ON state and into this I would put the precif IF block.

photo
1

Helo Attila.


Thanks for your answer.

I'm really struggling with the logic of these puzzles.


What i want to achieve is to turn on device "varmematte" if the virtual weatherstation forecast rain or snow. and the temp is below +5°C. So i will concentrate on justing turing it on for now. For now we can also take away the http device "vinterdrift out of the rule to make it simpler.


So it is only the device in the when block that can trigger the rule?


Can I do it like this?

14bcd4a91ffe18d2a20c7218ec0bfff9

photo
1

When I do it like this with a scheduler that check every minute I seem to get the heating on. I guess an opositee rule will turn it off.


10ec9ae494bf122339ecb8fbf4d1871b

photo
1

A scheduler can be a good approack. When you have a statement like below 5 degrees in the when block, if once the temp fall below 5 degrees, the rule will run, but later on if the temp drops further the rule will not be triggered again as it was already. So when should be cleverly plaid. Scheduler can start even 1x per hour, no need to fire so often. The weather forecast only updates in 1hours intervals or so anyway.

Leave a Comment
 
Attach a file