I have a rule that gets triggered every 90 seconds. The actions themselves are in a blockly script.
The actions in the script should only run once per day so I have quite a few conditions,
As far as use of resources or running efficiency of Openhab, does it make any difference if the conditions are in the script itself or in the BUT ONLY IF part of the rule?
There will be no measurable difference between the two at these frequencies. you’d need to run the rule more than once per second (depending on the hardware) and even then you’d probably have bigger improvements you could make.
But to answer your question, assuming the but only if conditions are not inline script conditions, I would expect them to be more effeciently than in the inline script action. But if they are inline script conditions, I expect it would be less efficient.
But again, you’d be hard pressed to measure the difference.