lovelace - Add time-of-day card

This commit is contained in:
Thomas Lovén 2019-01-15 23:06:31 +01:00
parent 1eb23b4b27
commit 039d1f7168
4 changed files with 33 additions and 3 deletions

1
appdaemon/apps/apps.yaml Normal file
View File

@ -0,0 +1 @@

View File

@ -18,21 +18,21 @@ timeofday:
default: "08:00"
has_date: False
has_time: True
friendly_name: Dag
friendly_name: Day
icon: mdi:weather-sunny
evening:
name: input_datetime.tod_evening
default: "19:00"
has_date: False
has_time: True
friendly_name: Kväll
friendly_name: Evening
icon: mdi:weather-sunset-down
night:
name: input_datetime.tod_night
default: "23:00"
has_date: False
has_time: True
friendly_name: Natt
friendly_name: Night
icon: mdi:minus
sunrise:
name: input_number.tod_sunrise_offset

View File

@ -10,6 +10,7 @@ views:
- !include cameras/barnrum.yaml
- !include cameras/kontor.yaml
- !include temperatures_card.yaml
- !include timeofday_card.yaml
{{ dev_card }}
- title: Floorplan

View File

@ -0,0 +1,28 @@
type: entities
title: Tid
show_header_toggle: false
entities:
- entity: sensor.time
name: Tid
- entity: sensor.date
name: Datum
- type: section
label: Tid på dygnet
- entity: input_select.tod
name: ' '
- entity: input_datetime.tod_morning
name: Morgon
- entity: input_datetime.tod_day
name: Dag
- entity: input_datetime.tod_evening
name: Kväll
- entity: input_datetime.tod_night
name: Natt
- type: section
- entity: switch.tod_dark
name: Mörkt
- entity: input_number.tod_sunrise_offset
name: Soluppgång +/- (min)
- entity: input_number.tod_sunset_offset
name: Solnedgång +/- (min)