Add new vacuum cleaner
This commit is contained in:
parent
59638398ab
commit
ee7de3f423
@ -2,6 +2,17 @@ title: Dashboard
|
|||||||
path: dashboard
|
path: dashboard
|
||||||
icon: mdi:home-assistant
|
icon: mdi:home-assistant
|
||||||
panel: true
|
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
|
||||||
cards:
|
cards:
|
||||||
- type: custom:layout-card
|
- type: custom:layout-card
|
||||||
layout: vertical
|
layout: vertical
|
||||||
@ -57,6 +68,6 @@ cards:
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: entity-button
|
- type: entity-button
|
||||||
entity: sun.sun
|
entity: vacuum.xiaomi_vacuum_cleaner
|
||||||
- type: entity-button
|
- type: entity-button
|
||||||
entity: binary_sensor.sopor
|
entity: binary_sensor.sopor
|
||||||
|
43
packages/vacuum.yaml
Normal file
43
packages/vacuum.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
vacuum:
|
||||||
|
- platform: xiaomi_miio
|
||||||
|
host: !secret vacuum_host
|
||||||
|
token: !secret vacuum_token
|
||||||
|
|
||||||
|
script:
|
||||||
|
vacuum_hall:
|
||||||
|
sequence:
|
||||||
|
- service: vacuum.xiaomi_clean_zone
|
||||||
|
data:
|
||||||
|
repeats: 1
|
||||||
|
zone:
|
||||||
|
- [23200, 25200, 27500, 28000]
|
||||||
|
vacuum_kitchen:
|
||||||
|
sequence:
|
||||||
|
- service: vacuum.xiaomi_clean_zone
|
||||||
|
data:
|
||||||
|
repeats: 1
|
||||||
|
zone:
|
||||||
|
- [23200, 21000, 27500, 25200]
|
||||||
|
vacuum_daily:
|
||||||
|
sequence:
|
||||||
|
- service: vacuum.xiaomi_clean_zone
|
||||||
|
data:
|
||||||
|
repeats: 1
|
||||||
|
zone:
|
||||||
|
- [23200, 25200, 27500, 28000]
|
||||||
|
- [23200, 21000, 27500, 25200]
|
||||||
|
vacuum_all:
|
||||||
|
sequence:
|
||||||
|
- service: vacuum.start
|
||||||
|
vacuum_empty:
|
||||||
|
sequence:
|
||||||
|
- service: vacuum.send_command
|
||||||
|
data:
|
||||||
|
entity_id: vacuum.xiaomi_vacuum_cleaner
|
||||||
|
command: app_goto_target
|
||||||
|
params: [26000, 26000]
|
||||||
|
vacuum_home:
|
||||||
|
sequence:
|
||||||
|
- service: vacuum.return_to_base
|
||||||
|
data:
|
||||||
|
entity_id: vacuum.xiaomi_vacuum_cleaner
|
Loading…
x
Reference in New Issue
Block a user