本帖最后由 缥缈的孤鸿 于 2019-5-25 23:04 编辑
第一个:
- alias: ab-c
initial_state: on
trigger:
- platform: state
entity_id:
- switch.a
- switch.b
to: 'on'
action:
- service: switch.turn_on
entity_id: switch.c
第二个:不确定这个service下的entity_id是不是可以这样写
- alias: c-ab
initial_state: on
trigger:
- platform: state
entity_id: switch.c
to: 'off'
action:
- service: switch.turn_off
entity_id:
- switch.a
- switch.b
|