Make your own Tasmota Builds
To Use an PCF8574 IO expander !
To Use an PCF8574 IO expander !
The video with all the instructions you need !
https://tasmota.github.io/docs/Compile-your-build/#compiling-tools
IMPORTANT INFO
if you create your own build, please also DE-SELECT Timers !!
I got some strange timer issues while testing ! Now i've made a new build and the problem is gone !!
#define USE_I2C // Add support for I2C
#define USE_PCF8574 // [I2cDriver2] Enable PCF8574 I/O Expander
#define USE_PCF8574_SENSOR // enable PCF8574 inputs and outputs in SENSOR message
#define USE_PCF8574_DISPLAYINPUT // enable PCF8574 inputs display in Web page
#define USE_PCF8574_MQTTINPUT // enable MQTT message & rule process on input change detection
For One Button !
rule1 ON PCF8574-1_INP#D0=0 DO Power1 toggle ENDON
For 4 Buttons !!
rule1 ON PCF8574-1_INP#D0=0 DO Power1 toggle ENDON ON PCF8574-1_INP#D1=0 DO Power2 toggle ENDON ON PCF8574-1_INP#D2=0 DO Power3 toggle ENDON ON PCF8574-1_INP#D3=0 DO Power4 toggle ENDON
Activate the rule
Rule1 1
Total Cost !
But you have normaly only 5 IO pins witch you can use without any problems on an ESP8266. I found this on the net !
So i Need more IO's and you can use the PCF8574 Chip to do this, this chip has 8 IO ports witch you can use as IN or OUTPUT, so this wil do the job.
it use the I2C but to communicate !