rlkoshak
(Rich Koshak)
July 26, 2016, 3:04pm
3
I’ll second @Udo_Hartmann ’s suggestion. Use the weather binding. I use the condition code from the weather binding to see if it is cloudy outside to control some of my lights.
Posting this here so I can easily find it later. Two more design patterns came to mind.
Separation of Behaviors
Problem Statement:
I have found in my rules and from helping others that often times certain sorts of checks, conditionals, etc. cross cut multiple functionality categories. For example, lighting and HVAC may both care about what time of day it is. Just about anything may want to send a notification. Lighting, blind/rollershutter controls/HVAC may all care whether it is cloudy.
What…