10
76
1606
金牌会员
使用道具 举报
28
561
4536
论坛元老
nuaawmy 发表于 2022-5-23 11:49 持续时间填个3s试试
7
351
3411
yuyuye 发表于 2022-5-23 13:27 据我观察,这类sensor的state有时候会短时间变成unavailable,恢复后就会误触发。 所以要加个template cond ...
alias: 玄关-进门自动化 description: '' trigger: - platform: state entity_id: - sensor.t1pro_event_922549_lock_lock_action to: 门外开锁 condition: [] action: - service: scene.turn_on target: entity_id: scene.jin_men_chang_jing metadata: {} - delay: hours: 0 minutes: 1 seconds: 0 milliseconds: 0 - service: scene.turn_on target: entity_id: scene.jin_men_chang_jing_jie_shu metadata: {} mode: single
condition: []
condition: - condition: template value_template: '{{ trigger.from_state.state != ''unavailable'' }}'
yuyuye 发表于 2022-5-23 15:14 改为:
3
74
1010
scxs535 发表于 2022-5-23 22:25 额外加个门磁开关吧
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-18 01:15 , Processed in 0.088669 second(s), 34 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.