给你看下我的浴霸自动开启
alias: 客卫浴霸温度超25开通风
description: ""
trigger:
- platform: device
type: turned_on
device_id: fd568d04223731d5f1777c7cad6f96bc
entity_id: switch.zhu_wei_l1
domain: switch
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: numeric_state
entity_id: climate.yeelink_v6_1e9f_ptc_bath_heater
attribute: current_temperature
above: 25
below: 35
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
after: "19:00:00"
before: "23:00:00"
action:
- device_id: 59437c8bc302080ac95e9b915288cffe
domain: select
entity_id: select.yeelink_v6_1e9f_cold_mode
type: select_option
option: High
- delay:
hours: 0
minutes: 8
seconds: 0
milliseconds: 0
- device_id: 59437c8bc302080ac95e9b915288cffe
domain: select
entity_id: select.yeelink_v6_1e9f_cold_mode
type: select_option
option: "Off"
- if:
- condition: device
type: is_off
device_id: fd568d04223731d5f1777c7cad6f96bc
entity_id: switch.zhu_wei_l1
domain: switch
- condition: device
type: is_off
device_id: fd568d04223731d5f1777c7cad6f96bc
entity_id: switch.zhu_wei_l2
domain: switch
then:
- device_id: 59437c8bc302080ac95e9b915288cffe
domain: select
entity_id: select.yeelink_v6_1e9f_cold_mode
type: select_option
option: "Off"
mode: single
|