10
190
1856
金牌会员
- alias: mirror heat on automation trigger: platform: numeric_state entity_id: sensor.humidity_158d000205cbe2 value_template: '{{ states.sensor.humidity_158d000205cbe2.state| int }}' above: 70 condition: - platform: numeric_state entity_id: sensor.temperature_158d000205cbe2 value_template: '{{ states.sensor.temperature_158d000205cbe2.state| int }}' below: 26 action: service: homeassistant.turn_on entity_id: switch.mirror_heat - alias: mirror heat off automation trigger: platform: state entity_id: binary_sensor.motion_sensor_158d000200e57e to: 'off' for: minutes: 1 action: service: homeassistant.turn_off entity_id: switch.mirror_heat
- alias: mirror heat on automation trigger: platform: numeric_state entity_id: sensor.humidity_158d000205cbe2 # value_template: '{{ states.sensor.humidity_158d000205cbe2.state| int }}' above: 75 condition: - condition: numeric_state entity_id: sensor.temperature_158d000205cbe2 value_template: '{{ states.sensor.temperature_158d000205cbe2.state| int }}' below: 35 action: service: homeassistant.turn_on entity_id: switch.mirror_heat - alias: mirror heat off automation trigger: - platform: state entity_id: switch.wall_switch_ln_left_158d00033fd748 to: 'off' # for: # minutes: 1 - platform: state entity_id: switch.mirror_heat to: 'on' for: minutes: 30 action: service: homeassistant.turn_off entity_id: switch.mirror_heat
使用道具 举报
0
143
4355
论坛元老
40
277
3233
8
2080
6167
流水无味
dizherui 发表于 2019-6-20 10:09 浴室镜子背贴的加热片吗?
csc 发表于 2019-6-20 00:22 condition没有platform
xieahui 发表于 2019-6-20 10:37 先不管你的语法错误 你这自动化逻辑应该不好用 没人的时候触发后一直开着呢
7
360
2121
本版积分规则 发表回复 回帖后跳转到最后一页
经常在论坛发帖,且发帖量较大
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-7-1 04:46 , Processed in 0.477953 second(s), 10 queries , MemCached On.
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.