Skip to content

Commit

Permalink
Update check-button-card attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Willans authored and Jeremy Willans committed Mar 9, 2020
1 parent 190c8cd commit d1f2952
Showing 1 changed file with 71 additions and 60 deletions.
131 changes: 71 additions & 60 deletions lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ cards:
lock:
enabled: |
[[[
if (states['group.vacuum_rooms'].state == "off")
return true;
return false;
if ((states['group.vacuum_rooms'].state == "on") && (states['sensor.vacuum'].state == "Ready"))
return false;
return true;
]]]
exemptions: []
name: Clean Rooms
Expand Down Expand Up @@ -48,50 +48,61 @@ cards:
}
text: Clean
type: 'custom:text-divider-row'
- entity: sensor.vacuum_maint_clean_brushes
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_clean_brushes
severity:
- hue: '140'
value: 8 days
- hue: '55'
value: 10 days
- hue: '345'
value: 14 days
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-1 days'
timeout: 10 days
title: Brushes
type: 'custom:check-button-card'
visibility_timeout: 10 days
- entity: sensor.vacuum_maint_clean_contacts
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_clean_contacts
severity:
- hue: '140'
value: 30 days
- hue: '55'
value: 40 days
- hue: '345'
value: 50 days
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-3 days'
timeout: 18 days
title: Contacts
type: 'custom:check-button-card'
visibility_timeout: 40 days
- entity: sensor.vacuum_maint_clean_filter
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_clean_filter
severity:
- hue: '140'
value: 8 days
- hue: '55'
value: 10 days
- hue: '345'
value: 14 days
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-10 days'
timeout: 10 days
title: Filter
type: 'custom:check-button-card'
visibility_timeout: 10 days
- entity: sensor.vacuum_maint_clean_wheel
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_clean_wheel
severity:
- hue: '140'
value: 15 days
- hue: '55'
value: 18 days
- hue: '345'
value: 21 days
title: Clean Wheel
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-3 days'
timeout: 18 days
title: Wheel
type: 'custom:check-button-card'
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_clean_bin
severity:
- color: '#bfb540'
value: 0 days
- color: '#bf4060'
value: '-3 days'
timeout: 18 days
title: Bin
type: 'custom:check-button-card'
visibility_timeout: 18 days
- style: |-
.text-divider {
padding: 0em;
Expand All @@ -103,39 +114,39 @@ cards:
}
text: Replace
type: 'custom:text-divider-row'
- entity: sensor.vacuum_maint_replace_brushes
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_replace_brushes
severity:
- hue: '140'
value: 6 months
- hue: '55'
value: 8 months
- hue: '345'
value: 12 months
- color: '#bfb540'
value: 0 months
- color: '#bf4060'
value: '-4 months'
timeout: 8 months
title: Brushes
type: 'custom:check-button-card'
visibility_timeout: 8 months
- entity: sensor.vacuum_maint_replace_filter
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_replace_filter
severity:
- hue: '140'
value: 2 months
- hue: '55'
value: 3 months
- hue: '345'
value: 4 months
- color: '#bfb540'
value: 0 months
- color: '#bf4060'
value: '-1 months'
timeout: 3 months
title: Filter
type: 'custom:check-button-card'
visibility_timeout: 3 months
- entity: sensor.vacuum_maint_replace_wheel
- color: '#40bf6a'
due: true
entity: sensor.vacuum_maint_replace_wheel
severity:
- hue: '140'
value: 12 months
- hue: '55'
value: 14 months
- hue: '345'
value: 18 months
- color: '#bfb540'
value: 0 months
- color: '#bf4060'
value: '-4 months'
timeout: 2 years
title: Wheel
type: 'custom:check-button-card'
visibility_timeout: 14 months
head:
label: Maintenance
type: section
Expand Down

0 comments on commit d1f2952

Please sign in to comment.