[MSR] Ideas to consolidate logic for solar heating
-
So, right now I have two different rules doing this thing, but I want to consolidate into one, because I want to leave everything super organized for the future me.
One thing I'm doing with solar is to monitor production, and when a threshold is met, I'll start my HVAC system to heat the house (and, in the summer, to cool it). This is working good, because I'm waiting for another rule to run and then I'm doing my things (setting a flag, turning on a thermostat, so the heater can start its magic).
Then, I have another rule that's turning the thermostat off, if at sunset-30m it's still ON. It's better to run the HVAC for a given amount of time, because after the water is at temperature, we're using less energy anyway.
So, I want to combine the rules into one, when the set action is the first, and the reset action is the second rule, but I'm finding some difficult and I'd been more than happy to get some help/ideas from you, my friends.
Keep in mind that I need to ensure that after the HVAC is turned on, I'll wait for the sunset-30m to turn it off. Any hints are appreciated, since I'm struggling to visualize the right solution to this problem. Thanks!
-
If I'm understanding your scenario right an AND Sunrise/Sunset between sunrise to sunset-30 in the trigger would run the reset reaction, where you put the actions from your second rule, at sunset-30 as the trigger condition will go false. But it will also turn the HVAC off if the threshold is no longer met, I don't know if that is what you want?
-
If I'm understanding your scenario right an AND Sunrise/Sunset between sunrise to sunset-30 in the trigger would run the reset reaction, where you put the actions from your second rule, at sunset-30 as the trigger condition will go false. But it will also turn the HVAC off if the threshold is no longer met, I don't know if that is what you want?