lovelace - Improved dev-mode card

This commit is contained in:
Thomas Lovén 2019-01-08 18:50:26 +01:00
parent f10b62c13c
commit aca29db464
2 changed files with 28 additions and 7 deletions

16
lovelace/dev_card.yaml Normal file
View File

@ -0,0 +1,16 @@
type: glance
title: Dev
show_state: false
entities:
- entity: sensor.time
name: Reload config
icon: mdi:refresh
tap_action:
action: call-service
service: shell_command.lovelace_gen
- entity: sensor.time
name: States
icon: mdi:tune
tap_action:
action: navigate
navigation_path: /states

View File

@ -1,3 +1,5 @@
{% set dev_card="- !include dev_card.yaml" %}
title: Åvägen
resources:
- url: !file /local/lovelace-card-tools/card-tools.js
@ -7,13 +9,16 @@ resources:
- url: !file /local/lovelace-time-input-row/time-input-row.js
type: js
views:
- title: Hemma2
- title: Hemma
cards:
- type: entity-button
entity: light.taklampa_kontoret
name: Reload config
tap_action:
action: call-service
service: shell_command.lovelace_gen
- !include floorplan.yaml
- !include coffee_card.yaml
{{ dev_card }}
- title: Floorplan
panel: true
cards:
- type: vertical-stack
cards:
- !include floorplan.yaml
{{ dev_card }}