mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 20:16:52 +00:00
Massive Migration! #292
This commit is contained in:
60
packages/time_date_sensors.yaml
Executable file
60
packages/time_date_sensors.yaml
Executable file
@@ -0,0 +1,60 @@
|
||||
#-------------------------------------------
|
||||
# Clean data for the Floorplan UI.
|
||||
#-------------------------------------------
|
||||
homeassistant:
|
||||
customize_glob:
|
||||
"sensor.floorplan_*":
|
||||
emulated_hue_hidden: True
|
||||
hidden: True
|
||||
homebridge_hidden: True
|
||||
"sensor.clock_*":
|
||||
emulated_hue_hidden: True
|
||||
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}}
|
Reference in New Issue
Block a user