Hello, my issue is that I cannot create automation with the temperature data from “sensor.xiaomi_smart_air_purifier_4_lite_temperature” What could be the reason for this?
I’m afraid it still didn’t work. I’m correctly checking the sensor data; for example, when it’s 23 degrees inside, the device activates regardless of the trigger conditions. Even if I input -1 or 30 degrees, the specified device still activates
To test your automation, wait for the sensor’s value to change from a temperature above 18 to below 18. At the moment the temperature crosses the threshold of 18, the Numeric State Trigger will trigger.
Another way to test it is to force the sensor’s value to be less than 18.
Go to Developer Tools > States
Find sensor.xiaomi_smart_air_purifier_4_lite_temperature in the list and click it.
Scroll to the top of the page where all of the sensor’s properties are displayed in a form.
Take note of its current State value (perhaps make a copy of it). It should currently be above 18 in order for the test to work.
Change the value to 17 or anything less than 18.
Click the Set State button.
That should be sufficient to trigger the automation’s Numeric State Trigger.
Optionally, use the same technique to set the sensor’s value back to the original temperature. Otherwise, simply wait for the sensor’s integration to update the sensor’s value.