Note the “delaytil” value is either a time-stamp or zero.
I have defined the following sensor which displays perfectly when “delaytil” is a timestamp. Unfortunately, it displays a bogus value when the timestamp is zero.
How can I modify the value_template so that it displays either either nothing or fixed text like “n/a” when the time stamp is zero?
That worked like a charm … delaytil was an unsigned long, so I did not need the second part for this solution, but I appreciate it because I think it will help me solve another problem.