I am using a VL53L0X distance measurement module. Basically, I need a reminder inside the house if I have forgotten to take my trash bin to the street. It’s pretty easy to trigger if the distance from the sensor on the wall to the bin is > 0. But if the bin is gone, the sensor.trashbin returns “NA”.
Now do I detect the “NA” in an automation?
UPDATE
Found it. the Automation works if the state is ‘unknown’, not ‘NAN’