Advertisement
yurghie

Untitled

Jun 6th, 2024
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.20 KB | None | 0 0
  1. template:
  2.   - binary_sensor:
  3.       - name: is summer on
  4.         device_class: heat
  5.         state: >-
  6.           {{ 'on' if (now().strftime('%m%d')>='0601' and now().strftime('%m%d')<'1001') else 'off' }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement