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

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

[求助] 怎么让扫地机器人全屋清扫

[复制链接]

42

主题

420

帖子

1496

积分

金牌会员

Rank: 6Rank: 6

积分
1496
金钱
1076
HASS币
0
发表于 2023-7-17 09:03:30 | 显示全部楼层 |阅读模式
本帖最后由 shayulei 于 2023-7-17 09:04 编辑

我的T7 PRO通过xiaomi miio集成接入HA,我写的一个自动化,,要求是离家后或每天3点全屋清扫,一直用的好好的,但最近因为开空调,很多房间门都关着,于是我手动一间间打扫了一下,结果我发现扫地机器人的下一次自动化只会扫我最后一次手动清扫的房间,而不是全屋。
以下是我的自动化代码:
alias: 清扫
description: ""
trigger:
  - platform: time
    at: "15:00:00"
    enabled: true
  - platform: state
    entity_id:
      - group.familymember
    to: not_home
    for:
      hours: 0
      minutes: 30
      seconds: 0
    enabled: true
condition:
  - condition: time
    after: "07:00:00"
    before: "19:00:00"
  - condition: template
    value_template: >-
      {{(now()-as_datetime(states('sensor.sao_di_ji_qi_ren_last_clean_end')))>timedelta(
      hours = 15)}}
action:
  - device_id: baa29cea83f100ca440d0cc48e5710e8
    domain: vacuum
    entity_id: vacuum.sao_di_ji_qi_ren
    type: clean
  - service: automation.turn_off
    data:
      stop_actions: true
    target:
      entity_id: automation.hong_wai_bu_fang
    enabled: false
mode: single


回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-2 14:10 , Processed in 0.044355 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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