- id: '1212313212452555'
alias: PC
trigger:
- entity_id: binary_sensor.door_window_sensor_158d0001f37b67
platform: state
to: 'on'
- entity_id: binary_sensor.door_window_sensor_158d0002781d29
platform: state
to: 'on'
- platform: numeric_state
entity_id: sensor.temperature_158d000249ad67
above: '28'
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.door_window_sensor_158d000237e071
state: 'off'
- condition: numeric_state
entity_id: sensor.temperature_158d000249ad67
above: '28'
- condition: time
before: '23:59:00'
after: '10:00:00'
action:
- data:
entity_id: remote.fang_jian_yao_kong
service: script.cold_air
想要在 action: 后面加上类似功能
但无奈不知道怎写 想请网上高人帮帮手
i=0
Do
- data:
entity_id: remote.fang_jian_yao_kong
service: script.cold_air
- delay: 00:00:05
if binary_sensor.door_window_sensor_158d00023e452d = on then i=1
Loop While i=1