Added switches to sthome-ut1 device

This commit is contained in:
Chris Stuurman 2025-04-16 22:40:29 +02:00
parent 593317514d
commit 51b2f58791

View File

@ -47,3 +47,55 @@ wifi:
password: "7SglIlgdkpAD" password: "7SglIlgdkpAD"
captive_portal: captive_portal:
#preferences:
# flash_write_interval: 30s
switch:
- platform: gpio
pin:
number: GPIO16
inverted: true
id: relay1
name: "Relay 1"
icon: "mdi:run-fast"
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- delay: 1000ms
- switch.turn_off: relay1
- platform: gpio
pin:
number: GPIO17
inverted: true
id: relay2
name: "Relay 2"
icon: "mdi:run-fast"
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- delay: 1000ms
- switch.turn_off: relay2
- platform: gpio
pin:
number: GPIO18
inverted: true
id: relay3
name: "Relay 3"
icon: "mdi:run-fast"
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- delay: 1000ms
- switch.turn_off: relay3
- platform: gpio
pin:
number: GPIO19
inverted: true
id: relay4
name: "Relay 4"
icon: "mdi:run-fast"
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- delay: 1000ms
- switch.turn_off: relay4