Hello to everyone!
I need to create a text_sensor that is showing the value 0 every 2 days, i tried to write a lambda using a timestamp divide for 86400, making it round with 0 decimals, % 2, but i never find a way to making it work, impossible to build.
On HA i was using garbage collection time ago, now i am using a condition template:
“{{ (now() - as_datetime(0)).days % 14 == 0 }}”, this is for 14 days,
but i need to make esphome independent from HA, if HA is giving some problem, so i need to convert in a lambda for esphome
Hope someone can help