I have a rule “opwarmen-als-temp-te-laag” (heatup if temperature too low) if $woonkamer-temperatuur < ($thermostaat.temperatureSetpoint-0.05) and warmte is turned off for 3 minutes then turn on warmte"
And 2 rules to switch it off again (one “default” rule and one to prevent overshoot). Combined they are:
{
"id": "opwarmen-als-temp-te-laag",
"name": "Opwarmen als temp te laag",
"rule": "if $woonkamer-temperatuur < ($thermostaat.temperatureSetpoint-0.05) and warmte is turned off for 3 minutes then turn on warmte",
"active": true,
"logging": true
},
{
"id": "uitzetten-als-temp-goed-is",
"name": "Uitzetten als temp goed is",
"rule": "if $woonkamer-temperatuur >= $thermostaat.temperatureSetpoint then turn off warmte",
"active": true,
"logging": true
},
{
"id": "uitzetten-als-temp-bijna-goed-is",
"name": "Uitzetten als temp bijna goed is",
"rule": "if [$woonkamer-temperatuur >= ($thermostaat.temperatureSetpoint-0.25) and warmte is turned on for 10 minutes] or $woonkamer-temperatuur >= $thermostaat.temperatureSetpoint then turn off warmte",
"active": true,
"logging": true
},
In general these work very well but sometimes they go haywire.
In my log I get messages like:
08:28:51.215 [pimatic] error: Error on evaluation of rule condition of rule opwarmen-als-temp-te-laag: undefined
08:28:54.429 [pimatic] error: Error on evaluation of rule condition of rule uitzetten-als-temp-bijna-goed-is: undefined
08:43:08.688 [pimatic] error: rule uitzetten-als-temp-goed-is error executing an action: undefined
08:43:08.697 [pimatic] debug: undefined
08:43:08.703 [pimatic] error: Error on evaluation of rule condition of rule uitzetten-als-temp-goed-is: undefined
10:25:14.386 [pimatic] error: rule opwarmen-als-temp-te-laag error executing an action: undefined
10:25:14.397 [pimatic] debug: undefined
10:25:14.404 [pimatic] error: Error on evaluation of rule condition of rule opwarmen-als-temp-te-laag: undefined
10:44:22.018 [pimatic] error: Error on evaluation of rule condition of rule opwarmen-als-temp-te-laag: undefined
And when I detect it (because it gets too warm or too cold), the only thing I have to do isgo into rules and only save the rule again. No modification whatsoever.
What is this? It makes pimatic untrustworthy. When I’m home or detect it “off home” I can correct it, but why is this sometimes not working?
Edit: I was slightly behind with my updates. I just did (working at home and freezing my xxxxx off):
Found update for pimatic-cron: current version is 0.8.6, latest version is: 0.8.7
Found update for pimatic-gpio: current version is 0.8.13, latest version is: 0.8.15
Found update for pimatic-openweather: current version is 0.8.19, latest version is: 0.8.22
Found update for pimatic-shell-execute: current version is 0.8.17, latest version is: 0.8.19