Splitting up sensors because there are starting to be a lot of them

This commit is contained in:
2022-04-06 15:05:15 -04:00
parent 745242fc51
commit 861f67d759
5 changed files with 54 additions and 52 deletions

11
sensors/time.yaml Normal file
View File

@ -0,0 +1,11 @@
- platform: season
type: astronomical
name: Current Season
- platform: template
sensors:
today_is:
friendly_name: 'Today is'
value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}"
month_is:
friendly_name: 'Month is'
value_template: "{{ ['January','February','March','April','May','June','August','September','October','November','December'][now().month-1] }}"