123
(Taras)
2
Did you read this one? It provides a very thorough explanation and even includes an example for as_timestamp.
Try: as_timestamp(0) and int(0).
Which version of Home Assistant are you using? I thought the latest one doesn't evaluate the state template if the availability template is false.