responsive dashboard

This commit is contained in:
Thomas Lovén 2019-03-11 15:51:48 +01:00
parent 4180f4da80
commit 812721e997
2 changed files with 21 additions and 14 deletions

View File

@ -5,8 +5,27 @@ panel: true
cards:
- type: custom:layout-card
layout: vertical
column_width: [-, 200px]
column_width: 350
max_width: [200px,100%]
rtl: true
cards:
- type: custom:layout-card
column_width: 150
max_width: 200
cards:
- type: entity-button
entity: switch.varme_jst
name: JST
icon: mdi:fan
tap_action:
action: toggle
- type: entity-button
entity: switch.varme_mhr
name: MHR
icon: mdi:fan
tap_action:
action: toggle
- break
- type: custom:layout-card
column_width: 350
max_width: 960
@ -41,16 +60,3 @@ cards:
entity: sun.sun
- type: entity-button
entity: binary_sensor.sopor
- break
- type: entity-button
entity: switch.varme_jst
name: JST
icon: mdi:fan
tap_action:
action: toggle
- type: entity-button
entity: switch.varme_mhr
name: MHR
icon: mdi:fan
tap_action:
action: toggle

View File

@ -12,6 +12,7 @@ binary_sensor:
- platform: template
sensors:
sopor:
entity_id: sensor.time
friendly_name: Sopor
icon_template: >-
{% if is_state('binary_sensor.sopor', 'on') %}