flyte / mqtt-io

Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
MIT License
465 stars 157 forks source link

Add support for `XL9535` relay board #400

Open mahnunchik opened 1 week ago

mahnunchik commented 1 week ago

Is your feature request related to a problem? Please describe.

It would be nice if mqtt-io supports XL9535 relay board.

Describe the solution you'd like

Normal integration like other I2C PCF8574 or PCF8575 gpio expanders.

Describe alternatives you've considered

Write the code...

Additional context

PXL_20240916_173910471 MP

I bought a great relay board, with 16 relays, which is enough for all my needs. I would like to have simple and convenient integration.

More info:

mahnunchik commented 1 week ago

It seems XL9535 is logically the same chip as PCA9535/TCA9535

mahnunchik commented 6 days ago

Hi @flyte @mschlenstedt @BenjiU

I'd like to work on support of XL9535/PCA9535/TCA9535 chip and prepare PR. Could you please point me how to add a new device?

It seems there is no existing python "driver" published in pip. Could low level code be placed in this repo or should I make separate package?


Some kind of nodejs driver https://github.com/isky04/node-red-contrib-xl9535

mschlenstedt commented 5 days ago

I recently started to add some sensors to MQTTIO. As far as I know there's no developer documentation. I looked at the existing modules, take one which is similar to the one I would like to add and started and tested on a life system.

You'll finde the code here:

Sensors: https://github.com/flyte/mqtt-io/tree/develop/mqtt_io/modules/sensor Input/Outputs: https://github.com/flyte/mqtt-io/tree/develop/mqtt_io/modules/gpio