61 lines
1.5 KiB
YAML
Executable File
61 lines
1.5 KiB
YAML
Executable File
#-------------------------------------------
|
|
# Clean data for the Floorplan UI.
|
|
#-------------------------------------------
|
|
homeassistant:
|
|
customize_glob:
|
|
"sensor.floorplan_*":
|
|
|
|
hidden: True
|
|
homebridge_hidden: True
|
|
"sensor.clock_*":
|
|
|
|
hidden: True
|
|
homebridge_hidden: 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
|
|
sensors:
|
|
floorplan_time:
|
|
friendly_name: 'Time'
|
|
value_template: >-
|
|
{{now().strftime("%-I")}}:{{now().strftime("%M")}} {{now().strftime("%p")}}
|
|
|
|
- platform: template
|
|
sensors:
|
|
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")}}
|
|
|
|
- platform: template
|
|
scan_interval: 30000
|
|
sensors:
|
|
clock_day:
|
|
friendly_name: 'Day'
|
|
value_template: >-
|
|
{{now().strftime("%A")}}
|
|
|
|
- platform: template
|
|
scan_interval: 30000
|
|
sensors:
|
|
clock_date:
|
|
friendly_name: 'Clock Date'
|
|
value_template: >-
|
|
{{now().strftime("%B")}} {{now().strftime("%d")}} {{now().year}}
|