mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-19 11:38:30 +00:00
removed time date sensors that I was using for floorplan. closes #404
This commit is contained in:
@@ -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}}
|
||||
|
Reference in New Issue
Block a user