Hi all
I have an issue with command line sensor (and a switch as well) for which I have a value template for 3 states with an if value1 then state1
elif value2 then state2
and else state3
but it might happen that I get an “undefined” value which then gets assigned as state3 … How should I manage this? Add a fourth state which would be “undefined”? Is it possible to simply leave it aside and not change the sensor value if I get an undefined feedback?