I am new to esphome and home assistant world. I have a nodemcu connected to 8 channel relay module through SN74HC595 (shift register) as I/O expander. When nodemcu boots it turns off all relays with a chatter as I want to operate my relays in normally off position. Please help me how to remove this chattering of relays at boot. One of the experts on esphome facebook channel suggested to turn off Vcc of relay module programmatically at boot. Can anyone guide how can I turn an gpio output off at boot and turn it on afterwards. I don’t want to access this output from home assistant.
sensor:
- platform: dht
pin: D1
temperature:
name: "Temperature"
humidity:
name: "Humidity"
update_interval: 5s
model: DHT11
# Example configuration entry
sn74hc595:
- id: 'sn74hc595_hub'
data_pin: D5
clock_pin: D8
latch_pin: D7
# Individual outputs
switch:
- platform: gpio
name: "Relay 1"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 0
number: 0
inverted: True
- platform: gpio
name: "Relay 2"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 1
number: 1
inverted: True
- platform: gpio
name: "Relay 3"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 2
number: 2
inverted: True
- platform: gpio
name: "Relay 4"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 3
number: 3
inverted: True
- platform: gpio
name: "Relay 5"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 4
number: 4
inverted: True
- platform: gpio
name: "Relay 6"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 5
number: 5
inverted: True
- platform: gpio
name: "Relay 7"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 6
number: 6
inverted: True
- platform: gpio
name: "Relay 8"
pin:
sn74hc595: sn74hc595_hub
# Use pin number 7
number: 7
inverted: True