Appdaemon - Better vacuum cleaner controls
This commit is contained in:
45
lovelace/vacuum_card.yaml
Normal file
45
lovelace/vacuum_card.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
type: vertical-stack
|
||||
cards:
|
||||
- type: custom:auto-entities
|
||||
card: { type: entities }
|
||||
filter:
|
||||
include:
|
||||
- entity_id: switch.vacuum_*
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: entity-button
|
||||
entity: sun.sun
|
||||
icon: mdi:broom
|
||||
name: Städa
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: python_script.event
|
||||
service_data:
|
||||
event: VACUUM_ZONE
|
||||
- type: entity-button
|
||||
entity: sun.sun
|
||||
icon: mdi:broom
|
||||
name: Städa Allt
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: python_script.event
|
||||
service_data:
|
||||
event: VACUUM_ALL
|
||||
- type: entity-button
|
||||
entity: sun.sun
|
||||
icon: mdi:wrench
|
||||
name: Töm
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: python_script.event
|
||||
service_data:
|
||||
event: VACUUM_SERVICE
|
||||
- type: entity-button
|
||||
entity: sun.sun
|
||||
icon: mdi:sleep
|
||||
name: Vila
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: python_script.event
|
||||
service_data:
|
||||
event: VACUUM_HOME
|
||||
@@ -5,14 +5,7 @@ panel: true
|
||||
popup_cards:
|
||||
vacuum.xiaomi_vacuum_cleaner:
|
||||
title: Dammsugare
|
||||
card:
|
||||
type: entities
|
||||
entities:
|
||||
- vacuum.xiaomi_vacuum_cleaner
|
||||
- script.vacuum_home
|
||||
- script.vacuum_empty
|
||||
- script.vacuum_daily
|
||||
- script.vacuum_all
|
||||
card: !include vacuum_card.yaml
|
||||
cards:
|
||||
- type: custom:layout-card
|
||||
layout: vertical
|
||||
|
||||
Reference in New Issue
Block a user