ecovacs-part3:UI and script.
ecovacs-part3 UI
create a script
If you only want to clean a specific room, create a script like this:
sequence:
- action: select.select_option
metadata: {}
data:
option: mop
target:
entity_id: select.your-vacuum-id_work_mode_2
alias: Select 'Select' on your-vacuum-id 工作模式 - mop
- action: number.set_value
metadata: {}
data:
value: "0"
target:
entity_id: number.your-vacuum-id_volume_2
alias: Number 'Set' on your-vacuum-id 音量 - 0
- action: vacuum.send_command
metadata: {}
data:
command: clean_V2
params:
act: start
content:
type: freeClean
value: 1,9
target:
entity_id: vacuum.your-vacuum-id_2
alias: Vacuum 'Send command' on - start
mode: single
alias: " Script - Vacuum mop bookroom - only mop"
description: >-
https://blog.matterxiaomi.com/blog/ecovacs-part3/
https://community.home-assistant.io/t/how-to-create-a-script-or-action-to-clean-specific-room-ecovacs-x2/780893/14?u=msly
UI
For the dashboard, you can create buttons for each room to press like this:
views:
- title: Home
header:
card:
type: markdown
text_only: true
content: |-
# Hello {{ user }}
Add your text here, template variables are supported ✨
sections:
- type: grid
cards:
- type: heading
heading: New section
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
entity: script.new_script_mop_bookroom
icon: mdi:toilet
name: WC
Useful links
UI and script
https://community.home-assistant.io/t/how-to-create-a-script-or-action-to-clean-specific-room-ecovacs-x2/780893/14
Comments
Be the first to post a comment