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! Display warnings on top of dashboard (experiment)
  • Loading branch information
Chris-V committed Aug 4, 2024
1 parent 062e23e commit 99b028a
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 78 deletions.
15 changes: 10 additions & 5 deletions dashboards/overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,44 @@ views:
- title: Home
path: home
icon: mdi:home
<<: !template
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/home.yaml

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

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

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

- title: Basement
path: basement
icon: mdi:home-floor-b
<<: !template
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/basement.yaml
Expand Down
144 changes: 71 additions & 73 deletions dashboards/view-layout.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,81 +1,79 @@
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
- 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
name: Intrusion
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.smoke_detected
state: "on"
card: #}
type: tile
state: "on"
card: #}
type: tile
entity: binary_sensor.intrusion_activity
name: Intrusion
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.smoke_detected
name: Smoke
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.carbon_monoxide_detected
state: "on"
card: #}
type: tile
state: "on"
card: #}
type: tile
entity: binary_sensor.smoke_detected
name: Smoke
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.carbon_monoxide_detected
name: Carbon monoxide
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.kitchen_door_lock_jammed
state: "on"
card: #}
type: tile
state: "on"
card: #}
type: tile
entity: binary_sensor.carbon_monoxide_detected
name: Carbon monoxide
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.kitchen_door_lock_jammed
name: Lock jammed
vertical: true
- {# type: conditional
conditions:
- condition: state
entity: binary_sensor.all_leaks
state: "on"
card: #}
type: tile
state: "on"
card: #}
type: tile
entity: binary_sensor.kitchen_door_lock_jammed
name: Lock jammed
vertical: true
- {# type: conditional
conditions:
- condition: state
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
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

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

0 comments on commit 99b028a

Please sign in to comment.