Advertisement
JLindvig

Even/Odd day of the year

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