Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Display warnings on top of dashboard (experiment)
  • Loading branch information
Chris-V committed Aug 4, 2024
1 parent 99b028a commit 41af78b
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 81 deletions.
15 changes: 5 additions & 10 deletions dashboards/overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,39 @@ views:
- title: Home
path: home
icon: mdi:home
type: panel
cards: !template
<<: !template
file: view-layout.yaml.j2
variables:
cards: !include views/home.yaml

- title: Home Security
path: security
icon: mdi:shield-home
type: panel
cards: !template
<<: !template
file: view-layout.yaml.j2
variables:
cards: !include views/security.yaml

- title: Climate
path: climate
icon: mdi:home-thermometer
type: panel
cards: !template
<<: !template
file: view-layout.yaml.j2
variables:
cards: !include views/climate.yaml

- title: Ground Floor
path: ground
icon: mdi:home-floor-g
type: panel
cards: !template
<<: !template
file: view-layout.yaml.j2
variables:
cards: !include views/ground-floor.yaml

- title: Basement
path: basement
icon: mdi:home-floor-b
type: panel
cards: !template
<<: !template
file: view-layout.yaml.j2
variables:
cards: !include views/basement.yaml
Expand Down
144 changes: 73 additions & 71 deletions dashboards/view-layout.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,79 +1,81 @@
- type: vertical-stack
cards:
- type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 6
cards:
- {# type: conditional
conditions:
- condition: state
type: panel
cards:
- type: vertical-stack
cards:
- type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 6
cards:
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.intrusion_activity
state: "on"
card: #}
type: tile
entity: binary_sensor.intrusion_activity
state: "on"
card: #}
type: tile
entity: binary_sensor.intrusion_activity
name: Intrusion
vertical: true
- {# type: conditional
conditions:
- condition: state
name: Intrusion
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.smoke_detected
state: "on"
card: #}
type: tile
entity: binary_sensor.smoke_detected
state: "on"
card: #}
type: tile
entity: binary_sensor.smoke_detected
name: Smoke
vertical: true
- {# type: conditional
conditions:
- condition: state
name: Smoke
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.carbon_monoxide_detected
state: "on"
card: #}
type: tile
entity: binary_sensor.carbon_monoxide_detected
state: "on"
card: #}
type: tile
entity: binary_sensor.carbon_monoxide_detected
name: Carbon monoxide
vertical: true
- {# type: conditional
conditions:
- condition: state
name: Carbon monoxide
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.kitchen_door_lock_jammed
state: "on"
card: #}
type: tile
entity: binary_sensor.kitchen_door_lock_jammed
state: "on"
card: #}
type: tile
entity: binary_sensor.kitchen_door_lock_jammed
name: Lock jammed
vertical: true
- {# type: conditional
conditions:
- condition: state
name: Lock jammed
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.all_leaks
state: "on"
card: #}
type: tile
entity: binary_sensor.all_leaks
state: "on"
card: #}
type: tile
entity: binary_sensor.all_leaks
name: Water leak
vertical: true
- {# type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: binary_sensor.all_leaks
state: "on"
- condition: state
entity: valve.main_water_shut_off
state: "off"
card: #}
type: tile
entity: valve.main_water_shut_off
name: Main water valve
vertical: true
name: Water leak
vertical: true
- {# type: conditional
conditions:
- condition: or
conditions:
- condition: state
entity: binary_sensor.all_leaks
state: "on"
- condition: state
entity: valve.main_water_shut_off
state: "off"
card: #}
type: tile
entity: valve.main_water_shut_off
name: Main water valve
vertical: true

- type: custom:layout-card
layout_type: custom:masonry-layout
cards:
{% filter indent(width = 8) %}
- type: custom:layout-card
layout_type: custom:masonry-layout
cards:
{% filter indent(width = 12) %}
{{ cards | tojson }}
{% endfilter %}

0 comments on commit 41af78b

Please sign in to comment.