因为小米全能扫拖机器人1s只支持边扫边拖,不支持先扫后拖,想弄个自动化,用的是Dreame Vacuum集成接入的,目前已经设置好了出门自动开始扫地
我看了日志,扫完地之后返回到dock之后的实体状态变化是Sweeping-->Returning to dock
但是我用这个来做触发条件不生效,求大佬解答下应该用什么触发条件
alias: 扫地机器人1S-扫完地自动拖地
description: ""
triggers:
- trigger: state
entity_id:
- sensor.mijia_infinite_robot_vacuum_mop_1s_state
from: Sweeping
to: Returning to dock
conditions:
- condition: time
after: "12:00:00"
before: "17:00:00"
- condition: and
conditions:
- condition: state
entity_id: device_tracker.ba
state: not_home
- condition: state
entity_id: device_tracker.vi
state: not_home
- condition: state
entity_id: device_tracker.en
state: not_home
- condition: or
conditions:
- condition: state
entity_id: device_tracker.ox
state: not_home
actions:
- device_id: 2341652444a20ff505fb84141351be9c
domain: select
entity_id: d205fdb7db7c0c5bb60c5458eb7cfa2a
type: select_option
option: mopping
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- device_id: 2341652444a20ff505fb84141351be9c
domain: vacuum
entity_id: 4f7f92c6f4d5f56d86b40d194b7b7cbb
type: clean
- data:
title: 扫地完成
message: 开始拖地
action: notify.notify
mode: single