Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! wip badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-V committed Aug 22, 2024
1 parent 134eafa commit bafb45e
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 162 deletions.
46 changes: 46 additions & 0 deletions dashboards/badges.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
- type: entity
entity: binary_sensor.intrusion_activity
visibility:
- condition: state
entity: binary_sensor.intrusion_activity
state: "off"

- type: entity
entity: binary_sensor.smoke_detected
visibility:
- condition: state
entity: binary_sensor.smoke_detected
state: "off"

- type: entity
entity: binary_sensor.carbon_monoxide_detected
visibility:
- condition: state
entity: binary_sensor.carbon_monoxide_detected
state: "off"

- type: entity
entity: binary_sensor.kitchen_door_lock_jammed
visibility:
- condition: state
entity: binary_sensor.kitchen_door_lock_jammed
state: "off"

- type: entity
entity: binary_sensor.all_leaks
visibility:
- condition: state
entity: binary_sensor.all_leaks
state: "off"

- type: entity
entity: valve.main_water_shut_off
visibility:
- condition: or
conditions:
- condition: state
entity: binary_sensor.all_leaks
state: "off"
- condition: state
entity: valve.main_water_shut_off
state: "closed"
28 changes: 8 additions & 20 deletions dashboards/overview-details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,23 @@ views:
- title: Sensors
path: sensors
icon: mdi:eye
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/sensor-details.yaml
badges: !include badges.yaml
cards: !include views/sensor-details.yaml

- title: Media
path: media
icon: mdi:play-pause
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/media-details.yaml
badges: !include badges.yaml
cards: !include views/media-details.yaml

- title: Z-Wave
path: zwave
icon: mdi:z-wave
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/zwave-details.yaml
badges: !include badges.yaml
cards: !include views/zwave-details.yaml

- title: Settings
path: settings
icon: mdi:cog
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/general-settings.yaml
badges: !include badges.yaml
cards: !include views/general-settings.yaml
71 changes: 9 additions & 62 deletions dashboards/overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,85 +4,32 @@ views:
- title: Home
path: home
icon: mdi:home
badges:
- type: entity
entity: binary_sensor.intrusion_activity
visibility:
- condition: state
entity: binary_sensor.intrusion_activity
state: "off"
- type: entity
entity: binary_sensor.smoke_detected
visibility:
- condition: state
entity: binary_sensor.smoke_detected
state: "off"
- type: entity
entity: binary_sensor.carbon_monoxide_detected
visibility:
- condition: state
entity: binary_sensor.carbon_monoxide_detected
state: "off"
- type: entity
entity: binary_sensor.kitchen_door_lock_jammed
visibility:
- condition: state
entity: binary_sensor.kitchen_door_lock_jammed
state: "off"
- type: entity
entity: binary_sensor.all_leaks
visibility:
- condition: state
entity: binary_sensor.all_leaks
state: "off"
- type: entity
entity: valve.main_water_shut_off
visibility:
- condition: or
conditions:
- condition: state
entity: binary_sensor.all_leaks
state: "off"
- condition: state
entity: valve.main_water_shut_off
state: "closed"
badges: !include badges.yaml
cards: !include views/home.yaml

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

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

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

- title: Basement
path: basement
icon: mdi:home-floor-b
type: panel
cards: !template
file: view-layout.yaml.j2
variables:
cards: !include views/basement.yaml
badges: !include badges.yaml
cards: !include views/basement.yaml

- title: Bolt EV
path: boltev
Expand Down
80 changes: 0 additions & 80 deletions dashboards/view-layout.yaml.j2

This file was deleted.

0 comments on commit bafb45e

Please sign in to comment.