From 15c180b98477a9537bde2ec615ec5b3456e8c98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 6 Mar 2019 22:25:24 +0100 Subject: [PATCH] lovelace: First version of a dashboard --- lovelace/cameras/hallen.yaml | 11 ++++++ lovelace/main.yaml | 1 + lovelace/resources.yaml | 7 ++++ lovelace/views/dashboard_view.yaml | 56 ++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 lovelace/cameras/hallen.yaml create mode 100644 lovelace/views/dashboard_view.yaml diff --git a/lovelace/cameras/hallen.yaml b/lovelace/cameras/hallen.yaml new file mode 100644 index 0000000..ddc1f0b --- /dev/null +++ b/lovelace/cameras/hallen.yaml @@ -0,0 +1,11 @@ +type: picture-elements +title: Hallen +image: /local/images/placeholder-800x600.png +elements: + - type: image + camera_image: camera.hallen + style: + left: 50% + top: 50% + height: 100% + width: 100% diff --git a/lovelace/main.yaml b/lovelace/main.yaml index b2aa651..6a2c38d 100644 --- a/lovelace/main.yaml +++ b/lovelace/main.yaml @@ -36,6 +36,7 @@ popup_cards: entity: light.takflakt_4 name: 4 views: + - !include views/dashboard_view.yaml - !include views/diverse_view.yaml - !include views/security_view.yaml - title: Floorplan diff --git a/lovelace/resources.yaml b/lovelace/resources.yaml index 49a16fa..fd23a1a 100644 --- a/lovelace/resources.yaml +++ b/lovelace/resources.yaml @@ -10,3 +10,10 @@ type: js - url: !file /local/lovelace-auto-entities/auto-entities.js type: js +- url: !file /local/lovelace-layout-card/layout-card.js + type: js + + # Specially modified by helto + # https://github.com/helto4real/hassio/tree/master/www/custom_cards +- url: !file /local/weather-card.js + type: module diff --git a/lovelace/views/dashboard_view.yaml b/lovelace/views/dashboard_view.yaml new file mode 100644 index 0000000..5fdec2b --- /dev/null +++ b/lovelace/views/dashboard_view.yaml @@ -0,0 +1,56 @@ +title: Dashboard +path: dashboard +icon: mdi:home-assistant +panel: true +cards: + - type: custom:layout-card + layout: vertical + column_width: [-, 200px] + cards: + - type: custom:layout-card + column_width: 350 + max_width: 960 + layout: vertical + cards: + - type: custom:weather-card + entity: weather.smhi_home + icons: /local/weather_icons/ + - break + - type: horizontal-stack + cards: + - type: picture + image: /local/images/thomas_clr.jpg + - type: picture + image: /local/images/anneli_clr.png + - type: horizontal-stack + cards: + - type: entity-button + entity: light.ytterbelysning + tap_action: + action: toggle + - type: entity-button + entity: light.fasadbelysning + tap_action: + action: toggle + - type: entity-button + entity: light.taklampor + name: Lampor inne + - type: horizontal-stack + cards: + - type: entity-button + 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