Add Date/Time Package

This commit is contained in:
2022-07-19 16:52:21 -07:00
parent 4981bb797a
commit 73460d5c3c
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Date/Time Package
# -----------------------------------------------------------------------------
# Time of Day Sensors and Helpers
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
binary_sensor:
- platform: tod
name: Before Dawn
after: "00:00"
before: sunrise
- platform: tod
name: Morning
after: "04:00"
before: "12:00"
- platform: tod
name: Afternoon
after: "12:00"
before: "17:00"
- platform: tod
name: Evening
after: "17:00"
before: "21:00"
- platform: tod:
name: Night
after: "21:00"
before: "04:00"