Advertisement
JLindvig

Better solution

Feb 25th, 2022
1,297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.13 KB | None | 0 0
  1. template:
  2.   - sensor:
  3.       - name: "Day of year even or odd"
  4.         state: "{{ int(as_timestamp(now()) / 86400) is divisibleby 2  }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement