本帖最后由 OliverY 于 2023-3-17 08:59 编辑
alias: 自动调温
description: ""
trigger:
- platform: time_pattern
minutes: /15
condition: []
action:
- if:
- type: is_temperature
condition: device
device_id: 04778b2c2cc12f49f68f4fda05b23c1f
entity_id: sensor.temperature
domain: sensor
above: 30
then:
- type: turn_off
device_id: f15ec1267e17b58a1e3c18e5ae7848bd
entity_id: switch.cuco_cp1_8b72_switch
domain: switch
else:
- if:
- type: is_temperature
condition: device
device_id: 04778b2c2cc12f49f68f4fda05b23c1f
entity_id: sensor.temperature
domain: sensor
below: 25
then:
- type: turn_on
device_id: f15ec1267e17b58a1e3c18e5ae7848bd
entity_id: switch.cuco_cp1_8b72_switch
domain: switch
mode: single
创建自动化,改成yaml编辑模式导入,切换成UI编辑后把温度计和开关设备改成你自己的
|