removed time date sensors that I was using for floorplan. closes #404

This commit is contained in:
CCOSTAN
2023-11-18 17:40:00 +00:00
parent 09b6d3931b
commit 0f8431bb58
4 changed files with 122 additions and 123 deletions

View File

@@ -46,3 +46,40 @@ binary_sensor:
name: Bedroom Plugged
retain: true
#---Sensor for Time and Date.-----------------------------
sensor:
- platform: template
scan_interval: 30000
sensors:
floorplan_date:
friendly_name: 'Date'
value_template: >-
{{now().strftime("%A")}}, {{now().strftime("%B")}} {{now().strftime("%d")}}
- platform: template
scan_interval: 60
sensors:
floorplan_time:
friendly_name: 'Time'
value_template: >-
{{now().strftime("%-I")}}:{{now().strftime("%M")}} {{now().strftime("%p")}}
clock_time:
friendly_name: 'Clock Time'
value_template: >-
{{now().strftime("%-I")}}:{{now().strftime("%M")}}
- platform: template
scan_interval: 30000
sensors:
clock_am_pm:
friendly_name: 'AM/PM'
value_template: >-
{{now().strftime("%p")}}
clock_day:
friendly_name: 'Day'
value_template: >-
{{now().strftime("%A")}}
clock_date:
friendly_name: 'Clock Date'
value_template: >-
{{now().strftime("%B")}} {{now().strftime("%d")}} {{now().year}}