The sensor is xiaomi’s temperature reading. The template is correct (checked in the developer tools). The current reading is 12.4 so I’d think I add automation with a trigger like above and I should see it running but this does not happen. The debugger does not shed any light, says about the showflake (representing the trigger?) that “This node was not executed and so no further trace information is available.”
Home Assistant 2021.7.4.
This feels like a recent change, is it? I could not spot anything related in the changelog though.
Trigger templates triggered when after template’s evaluation, result changes from false to true.
If you can go to Developer Tools —> States (tab) —> Type the sensor’s entity —> Try changing it to above 13.5 (such as 14), then change it to below 13.5 (such as 12).
Then check if the automation is triggered or not.
Note: For a more detailed explanation, see Taras’ explanation here.
Thanks, playing with the state does trigger it. However it does not trigger when it should during the night, and the sensor history graph says there was crossing +14. The temperature sensor belongs to the Xiaomi purifier, it is one of those devices without an “id” (or something like that). How to debug this one?
btw I am seeing a bug - when I open some automation editor, the “save” button appears right away even though I did not make any change.
Can you try out this? You can go to Automation Editor → On the top right you’ll see three dots → Click on it → Choose Edit in YAML → Copy over everything