lovelace: Update for new version of popup-card

This commit is contained in:
Thomas Lovén 2019-03-06 22:19:58 +01:00
parent 8f66f5a5ed
commit 334133f469
2 changed files with 98 additions and 88 deletions

View File

@ -1,8 +1,6 @@
type: vertical-stack
cards:
- type: picture-elements
image: !file /local/images/Bottenvåning.png
elements:
type: picture-elements
image: !file /local/images/Bottenvåning.png
elements:
{% macro lamp(entity, x, y) -%}
- entity: {{entity}}
@ -37,7 +35,7 @@ cards:
tap_action: { action: toggle }
style: { left: 16%, top: 84% }
# Vardagsrummet
# Vardagsrummet
{{ dimlamp('light.vardagsrum', 60, 30) }}
{{ dimlamp('light.takflakt', 43, 30) }}
{{ lamp('light.bokhylla', 55, 45) }}
@ -46,17 +44,17 @@ cards:
entity: sensor.vardagsrum_0
style: { left: 40%, top: 36% }
# Sovrum
# Sovrum
{{ dimlamp('light.sovrum', 81, 30) }}
# Tvättstuga
# Tvättstuga
{{ lamp('light.skotbord', 21, 15) }}
- type: state-icon
entity: switch.ventilation
tap_action: { action: toggle }
style: { left: 30%, top: 30% }
# Utomhus
# Utomhus
{{ dimlamp('light.baksida', 35, 5) }}
{{ dimlamp('light.mellangang', 10, 30) }}
{{ dimlamp('light.uppfart', 5, 94) }}
@ -72,26 +70,3 @@ cards:
- type: state-label
entity: sensor.elmatare_0
style: { left: 5%, top: 55% }
- type: custom:popup-card
entity: light.takflakt
title: Takfläkt
card:
type: entities
entities:
- type: custom:slider-entity-row
entity: light.takflakt
name: All
- type: section
- type: custom:slider-entity-row
entity: light.takflakt_1
name: 1
- type: custom:slider-entity-row
entity: light.takflakt_2
name: 2
- type: custom:slider-entity-row
entity: light.takflakt_3
name: 3
- type: custom:slider-entity-row
entity: light.takflakt_4
name: 4

View File

@ -1,5 +1,40 @@
title: Åvägen
resources: !include resources.yaml
background: var(--lovelace-background)
popup_cards:
light.taklampor:
title: Taklampor
card:
type: entities
entities:
- light.lilla_hallen
- light.sovrum
- light.stora_hallen
- light.takflakt
- light.taklampa_koket
- light.taklampa_kontoret
- light.vardagsrum
light.takflakt:
title: Takfläkt
card:
type: entities
entities:
- type: custom:slider-entity-row
entity: light.takflakt
name: All
- type: section
- type: custom:slider-entity-row
entity: light.takflakt_1
name: 1
- type: custom:slider-entity-row
entity: light.takflakt_2
name: 2
- type: custom:slider-entity-row
entity: light.takflakt_3
name: 3
- type: custom:slider-entity-row
entity: light.takflakt_4
name: 4
views:
- !include views/diverse_view.yaml
- !include views/security_view.yaml