- Platform information:
- Hardware: Raspberry Pi 4
- OS: openhabian
- openHAB version: 5.1.1
I have two simple rules that are all made with the UI, they trigger my two separate greenhouse fans, both identical aside from the relay they send the ON command to. Every 5 minutes it is set to turn the relays on, with a Blockly if condition that generates the code listed below. The if condition checks the temp of the greenhouse to see if it is greater than or equal to the set point for said fan and if it is, it sends the ON command to the relay. It worked perfectly fine for two weeks and then today out of nowhere, the rules for both fans stopped triggering. I could manually trigger the rules and they would run. I tried removing the if condition from the rule, still wouldn’t trigger. Rebooted the raspberry pi, with no effect. I made an identical new rule without the if condition and it would trigger until I added that if condition back in. Just for something to try I changed it from greater than or equal to, to just greater than and then both rules triggered with no issues. Since I generated the code with blockly and have had no issues till now, I don’t think it’s something I could have done in the code. But I can’t think of or find any reason that it would have done that…
items.getItem('Greenhouse_South_3_Greenhouse_Temperature').state >= items.getItem('GreenhouseNorthFanSetpoint').state;

