有全关的那个entity吗? 另外我把两个风暖用滑块整合了,这样方便一点。
- id: '1610355582502'
alias: 按钮动作:浴霸滑块
description: ''
trigger:
- platform: state
entity_id: input_number.yu_ba_nuan_feng_deng_ji
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_number.yu_ba_nuan_feng_deng_ji
state: '1.0'
sequence:
- service: switch.turn_on
data: {}
entity_id: switch.warmingswitch1
- service: switch.turn_off
data: {}
entity_id: switch.warmingswitch2
- conditions:
- condition: state
entity_id: input_number.yu_ba_nuan_feng_deng_ji
state: '2.0'
sequence:
- service: switch.turn_on
data: {}
entity_id: switch.warmingswitch1
- service: switch.turn_on
data: {}
entity_id: switch.warmingswitch2
- conditions:
- condition: state
entity_id: input_number.yu_ba_nuan_feng_deng_ji
state: '0.0'
sequence:
- service: switch.turn_off
data: {}
entity_id: switch.warmingswitch1
- service: switch.turn_off
data: {}
entity_id: switch.warmingswitch2
default: []
mode: single
input_number.yu_ba_nuan_feng_deng_ji 这个直接UI辅助元素那添加一个 替换entity_id即可。
|