『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 74|回复: 0

[求助] 关于扫地机器人先扫后拖的自动化

[复制链接]

6

主题

75

帖子

1005

积分

金牌会员

Rank: 6Rank: 6

积分
1005
金钱
930
HASS币
0
发表于 前天 22:32 | 显示全部楼层 |阅读模式
因为小米全能扫拖机器人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


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-4 16:22 , Processed in 0.066006 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表