Parts used
Wago 5 slots | 2x
Wago 3 slots | 2x
1x https://www.aliexpress.com/item/1005006058718122.html
Split in middle and stripped
2x https://www.aliexpress.com/item/1005005926554704.html
For both sides of the bed, you can also buy the 8 relay one if you only want 1 controller
Code to control it
switches:
- platform: gpio
pin: GPIO23
id: led
- platform: gpio
pin: GPIO32
id: relay_pin_1
- platform: gpio
pin: GPIO33
id: relay_pin_2
- platform: gpio
pin: GPIO25
id: relay_pin_3
- platform: gpio
pin: GPIO26
id: relay_pin_4
#Legs
cover:
- platform: time_based
name: "Legs"
open_action:
- switch.turn_on: relay_pin_2
open_duration: 13sec
close_action:
- switch.turn_on: relay_pin_1
close_duration: 14sec
stop_action:
- switch.turn_off: relay_pin_1
- switch.turn_off: relay_pin_2
#Head
- platform: time_based
name: "Head"
open_action:
- switch.turn_on: relay_pin_4
open_duration: 20sec
close_action:
- switch.turn_on: relay_pin_3
close_duration: 18sec
stop_action:
- switch.turn_off: relay_pin_3
- switch.turn_off: relay_pin_4
Thread: https://discord.com/channels/429907082951524364/1274251565313822762
For full journey
Thx allot to
@distant moth
@patent mantle
@fresh pond
@novel mountain
For all the help figuring this out.