1) Give a description of the problem
I want a piston that will turn on a switch during a certain time of day, and also if a certain weather event exists. I have a zwave switch that turns on/off an electric socket. Plugged into the socket is a light and a heated mat.
2) What is the expected behaviour?
The switch is on from 4pm to 11:30pm. AND - the switch is on if (Weather Underground? Accuweather?) says it is snowing, no matter what time of day. I know that means the mat will be on from 4pm to 11:30pm regardless of weather, that’s ok. And I know that means the light will be on any time it snows, even during the day, and that’s fine too. We remove this light and unplug the mat when Winter is over!
I know how to design a piston for the time part. I have no idea how to integrate weather or how to integrate it with the time constraint (or - ignoring the time constraint?).


