Good day
Just a problem that has me stumped on momentarily push switch. I have a dual relay connected to esp32 dev board for my garage door opener, if I use the config below only one relay on pin 25 switches on and off on both switches in hassio. pin 33 does not respond. If I use he config right at the end both relays trigger but you have to manually press them to switch off again. Sensors work and I also get sms from sensors. Any help will be appreciated.
binary_sensor:
- platform: status
name: "Door Status"
- platform: gpio
pin:
number: 14
mode: INPUT_PULLDOWN
inverted: True
name: "Toyota Garage Door"
device_class: door
- platform: gpio
pin:
number: 27
mode: INPUT_PULLDOWN
inverted: True
name: "Honda Garage Door"
device_class: door
switch:
- platform: gpio
id: relay
pin:
number: 25
inverted: False
restore_mode: ALWAYS_OFF
- platform: template
name: "Honda Garage Door Switch"
icon: "mdi:garage"
turn_on_action:
- switch.turn_on: relay
- delay: 1s
- switch.turn_off: relay
- platform: gpio
id: relay1
pin:
number: 32
inverted: False
restore_mode: ALWAYS_OFF
- platform: template
name: "Toyota Garage Door Switch"
icon: "mdi:garage"
turn_on_action:
- switch.turn_on: relay
- delay: 1s
- switch.turn_off: relay`
````
2nd config
binary_sensor:
- platform: status
name: “Door Status” - platform: gpio
pin:
number: 14
mode: INPUT_PULLDOWN
inverted: True
name: “Toyota Garage Door”
device_class: door - platform: gpio
pin:
number: 27
mode: INPUT_PULLDOWN
inverted: True
name: “Honda Garage Door”
device_class: door
switch:
-
platform: gpio
name: “Honda Garage Door Opener”
pin: 25
inverted: True
icon: “mdi:garage”
restore_mode: RESTORE_DEFAULT_OFF -
platform: gpio
name: “Toyota Garage Door Opener”
pin: 33
inverted: True
icon: “mdi:garage”
restore_mode: RESTORE_DEFAULT_OFF`