|
发表于 2024-9-24 21:49:40
来自手机
|
显示全部楼层
本帖最后由 cmsj 于 2024-9-24 22:17 编辑
switch: - platform: gpio
pin: GPIO14
inverted: true
name: relay1
id: relay1
interlock: &interlock_group [relay1, relay2, relay3]
on_turn_on:
- delay: 5s
- switch.turn_off: relay1
- delay: 55s
- switch.turn_on: relay2
- platform: gpio
pin: GPIO12
inverted: true
name: relay2
id: relay2
interlock: *interlock_group
on_turn_on:
- delay: 5s
- switch.turn_off: relay2
- delay: 55s
- switch.turn_on: relay3
- platform: gpio
pin: GPIO13
inverted: true
name: relay3
id: relay3
interlock: *interlock_group
on_turn_on:
- delay: 5s
- switch.turn_off: relay3
- delay: 55s
- switch.turn_on: relay1
|
|