Hi all,
I hope you can all help me with some debugging of the rules I’ve set because they’re not working as I think they should.
First, here are my things:
The two heater things are Wemos D1 Mini running with WebThing-Arduino to control a pilot wire to the heaters’ own mode selector.
This one is virtual.
And I have the DateTime adapter installed too.
Now, my rules and the problems I have:
- If DateTime Hour is greater than 7, DateTime Hour is less than 23, and Heating system is on, set Ground Floor Heater 2 Setting to 3 and set Ground Floor Heater 1 Setting to 3.
- If DateTime Hour is less than 7, DateTime Hour is greater than 23, and Heating system is on, set Ground Floor Heater 1 Setting to 2 and set Ground Floor Heater 2 Setting to 2.
- If Heating system is not on, set Ground Floor Heater 1 Setting to 0 and set Ground Floor Heater 2 Setting to 0.
To my understanding these rules should work like a standard heater control timer: There is a master switch, if it’s off then the heating is completely off, if it’s on then the heating follows the timer rules. The master switch works to turn the heating off, but unfortunately the timer rules do not - when the time passes 23 or 7 then the heater settings should change, but they don’t. If I use the master switch to turn off the heating then turn it back on it should set the heating to the correct setting for the time of day, but it doesn’t the heating stays turned off.
I have also tried replacing If in rules 1 and 2 with While and this has different results. The on/off switch does work as expected and when turned on the heating goes to the setting defined by rules 1 and 2. However, at seemingly random times during the day the switch turns itself off! This then turns off the heating and the switch does not (AFAICT) turn itself back on. I have no rules to control the switch itself, so I cannot understand why it does this.
I tried using the logging experiment to debug, but as I mentioned in IRC the logs do not reflect the actual states of the heaters or the switch. Looking at the internal logs isn’t much help because they don’t tell me the state of the switch and only tells me the value of the heaters setting when I access the webapp, not when they change state.
So, what suggestions does anyone have for how to fix my rules and make it work? If I can’t make these rules work I’ll have to go back to the very simple rules I had before which at 7:00 and 23:00 changed the heater setting, but only at those specific times (no ranges used) and with a master switch.
Thanks