mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Add brita to kitchen dashboard
This commit is contained in:
@@ -6,7 +6,6 @@ custom_header:
|
|||||||
hide_reload_resources: true
|
hide_reload_resources: true
|
||||||
indicator_top: true
|
indicator_top: true
|
||||||
|
|
||||||
|
|
||||||
decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
|
decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
|
||||||
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
|
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
|
||||||
popup_cards: !include lovelace/popup_cards.yaml
|
popup_cards: !include lovelace/popup_cards.yaml
|
||||||
|
|||||||
@@ -14,13 +14,15 @@
|
|||||||
layout: horizontal
|
layout: horizontal
|
||||||
max_columns: 1
|
max_columns: 1
|
||||||
cards:
|
cards:
|
||||||
- type: horizontal-stack
|
- type: vertical-stack
|
||||||
title: Lights
|
title: Lights
|
||||||
|
cards:
|
||||||
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: light.tuya_kitchen_all_lights
|
entity: light.tuya_kitchen_all_lights
|
||||||
name: All lights
|
name: Kitchen
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: light.tuya_kitchen_main_lights
|
entity: light.tuya_kitchen_main_lights
|
||||||
@@ -29,22 +31,60 @@
|
|||||||
template: small
|
template: small
|
||||||
entity: light.tuya_kitchen_secondary_lights
|
entity: light.tuya_kitchen_secondary_lights
|
||||||
name: Secondary
|
name: Secondary
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
title: Hallway
|
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: light.hallway_all_lights
|
entity: light.hallway_all_lights
|
||||||
name: All lights
|
name: Hallway
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance_lights
|
||||||
name: Entrance
|
name: Hallway main
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: light.tuya_hallway_main_lights
|
entity: light.tuya_hallway_main_lights
|
||||||
name: Main
|
name: Entrance
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
title: Brita
|
||||||
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: small
|
||||||
|
name: Pour water
|
||||||
|
entity: script.brita_pour_water
|
||||||
|
custom_fields:
|
||||||
|
remaining_liters: "[[[ return states['input_number.brita_remaining_liters'].state ]]]"
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
styles:
|
||||||
|
card:
|
||||||
|
- background: >
|
||||||
|
[[[
|
||||||
|
var remaining = states['input_number.brita_remaining_liters'].state;
|
||||||
|
var percent = 100 - (remaining / 150 * 100);
|
||||||
|
return 'linear-gradient(180deg, var(--paper-card-background-color) 0%, var(--paper-card-background-color)' + percent + '%, var(--primary-color) ' + percent + '%)'
|
||||||
|
]]]
|
||||||
|
- color: white
|
||||||
|
icon:
|
||||||
|
- color: white
|
||||||
|
custom_fields:
|
||||||
|
remaining_liters:
|
||||||
|
- position: absolute
|
||||||
|
- top: 5px
|
||||||
|
- right: 5px
|
||||||
|
- font-size: 12px
|
||||||
|
|
||||||
|
- type: custom:button-card
|
||||||
|
template: small
|
||||||
|
name: New filter
|
||||||
|
entity: script.brita_new_filter
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
|
- type: custom:button-card
|
||||||
|
template: small
|
||||||
|
name: Filter
|
||||||
|
entity: binary_sensor.brita_should_change_filter
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -91,7 +91,6 @@
|
|||||||
icon:
|
icon:
|
||||||
- color: black
|
- color: black
|
||||||
|
|
||||||
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: media_player.living_room_tv
|
entity: media_player.living_room_tv
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
custom_header:
|
custom_header:
|
||||||
hide_header: true
|
hide_header: true
|
||||||
|
disable_sidebar: false
|
||||||
|
|
||||||
decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
|
decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
|
||||||
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
|
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
|
||||||
|
|||||||
Reference in New Issue
Block a user