I have a rule which was running last summer (I think OH 2.5) properly.
Since the upgrade to OH3 it does no longer work.
The log does not show any entry, even when I start the rule in main ui manually.
Following what I had in the rules file:
rule "Solarsteuerung ausschalten"
when
Time cron "0 0/6 11-19 ? APR,MAY,JUN,JUL,AUG,SEP * *"
then
if (DeltaSolSLTRegler_TemperaturSensor3.state > 77.6 && Solarsteuerung.state == ON) {
sendCommand(Solarsteuerung, OFF)
}
end
It is a very simple rule and I have no idea why it does not fire.
I thought to delete the rule file and add it to main ui, but also does not work.
Following the main ui code:
Is your logInfo line inside or outside your ‘if’ statement? Put it outside to see the value in case there is an issue with the ‘if’ statement. You want to break this down to find out if the cron is firing, and if it is, then is the if statement working. Those are 2 questions to answer.
Thank you for your suggestion.
I had the logInfo line inside the if-statement.
Put it outside now.
Today it will get very hot and sunny, so it should fire for sure in the afternoon.