ESPHome and sn74hc595

Hi
I am quietly new to ESPHome. so excuse me if my question is kind newbie,
And i have a ESP8266 nodemcu and 4 sn74hc595 as I/O expander. and it’s work fine with my relays.
So i want to know , is it possible to use I/O Expander ports as Sensor, Binary_sensor, RGB LED ?
I did not find anything to explain it or concept about it .

Thanks

Go to esphome.io

Search sn74

Find this SN74HC595 I/O Expander (shift register) — ESPHome

Hey there,
Thanks for quick reply, Actually as i mentioned already have dose and Relays works fine,
I want to use Sensors or binary_sensors behind it.
The Problem is Addressing PIN:
for Example:

switch:

  • platform: gpio
    name: “SN74HC595 Pin #0
    pin:
    sn74hc595: sn74hc595_hub
    number: 0
    inverted: False

Is it Possible to use Expander for sensor like dht ? or RGB Led ?
Something like this:

sensor:

  • platform: dht
    pin:
    sn74hc595: sn74hc595_hub
    number: 1
    temperature:
    name: “Living Room Temperature”
    humidity:
    name: “Living Room Humidity”
    update_interval: 60s

The sn74hc595can only be used for output components, so that rules out the binary sensor, or sensor which are inputs.

1 Like

No, you can’t use 74hc595 as input. For this you will need latched parallel in, serial out chip as SN74HC597, but looks that this chip is not supported in esphome.
Try with I2C expanders as PCF8574 or SX1509.

Yea,
Thank you

1 Like