I have a heater in my greenhouse which is connected via a smart plug. I want to turn it on when the outside temperature (which I get from OpenWeatherMap) is below 5° and the temperature in the greenhouse (which I get from a Sonoff sensor) is below 7°.
I’ve created an automation using the GUI, which specifies a trigger for the outside temperature below 5, and a condition that the sensor in the greenhouse is reading below 7.
It’s now 1.2° outside according to OpenWeatherMap, and the greenhouse sensor is showing 5.2°. The automation hasn’t fired.
I’m guessing that when the outside temperature goes below 5 your condition is not yet below 7 so the actions will never run. The only way this would work is if both are true at exactly the same time.
If this is the case then you probably need a template trigger to logically ‘and’ the two conditions (<5 AND <7). If you don’t want to get into templates then the following post expalins another method: