BlogContact

Pin mapping

Which ESP32 and expander pins the inputs, outputs and peripherals of the boneIO ESP Cover Mix use

This page is for people writing their own firmware (e.g. SUPLA, Tasmota) or a configuration from scratch. You don't need it for normal setup — the installer at boneio.eu/esp and the ready YAML files already contain these pins.

The tables are generated from the controller's public ESPHome configuration, so they match the firmware. "Inverted" means the active state is low. Ports commented out in the YAML (e.g. Modbus, 1-Wire) are not in the tables — their pins are in the comments of the source file.

v0.5/v0.6

Source: boneio-cover_mix_switches_v0_5-v0_6.yaml

I2C buses

BusSDASCL
bus_aGPIO14GPIO15
bus_bGPIO17GPIO33

Chips on I2C

ChipBusAddressYAML ID
PCF8575bus_a0x20pcf_inputs_1to14
PCF8575bus_a0x21pcf_inputs_15to28
PCF8574bus_a0x22pcf_inputs_28to35_menu
ina219bus_a0x40
ds1307bus_a0x68ds1307_time
PCF8575bus_b0x20pcf_right
PCF8575bus_b0x21pcf_left
SH1106_128X64bus_b0x3Coled_display
lm75bus_b0x48boneIO_temp

Inputs

NameYAML IDOnPinInverted
boneIO_buttonboneIO_buttonPCF8574 0x22 (pcf_inputs_28to35_menu)7 (P7)yes
IN_01in_01PCF8575 0x20 (pcf_inputs_1to14)0 (P00)yes
IN_02in_02PCF8575 0x20 (pcf_inputs_1to14)1 (P01)yes
IN_03in_03PCF8575 0x20 (pcf_inputs_1to14)2 (P02)yes
IN_04in_04PCF8575 0x20 (pcf_inputs_1to14)3 (P03)yes
IN_05in_05PCF8575 0x20 (pcf_inputs_1to14)4 (P04)yes
IN_06in_06PCF8575 0x20 (pcf_inputs_1to14)5 (P05)yes
IN_07in_07PCF8575 0x20 (pcf_inputs_1to14)6 (P06)yes
IN_08in_08PCF8575 0x20 (pcf_inputs_1to14)8 (P10)yes
IN_09in_09PCF8575 0x20 (pcf_inputs_1to14)9 (P11)yes
IN_10in_10PCF8575 0x20 (pcf_inputs_1to14)10 (P12)yes
IN_11in_11PCF8575 0x20 (pcf_inputs_1to14)11 (P13)yes
IN_12in_12PCF8575 0x20 (pcf_inputs_1to14)12 (P14)yes
IN_13in_13PCF8575 0x20 (pcf_inputs_1to14)13 (P15)yes
IN_14in_14PCF8575 0x20 (pcf_inputs_1to14)14 (P16)yes
IN_15in_15PCF8575 0x21 (pcf_inputs_15to28)6 (P06)yes
IN_16in_16PCF8575 0x21 (pcf_inputs_15to28)5 (P05)yes
IN_17in_17PCF8575 0x21 (pcf_inputs_15to28)4 (P04)yes
IN_18in_18PCF8575 0x21 (pcf_inputs_15to28)3 (P03)yes
IN_19in_19PCF8575 0x21 (pcf_inputs_15to28)2 (P02)yes
IN_20in_20PCF8575 0x21 (pcf_inputs_15to28)1 (P01)yes
IN_21in_21PCF8575 0x21 (pcf_inputs_15to28)0 (P00)yes
IN_22in_22PCF8575 0x21 (pcf_inputs_15to28)8 (P10)yes
IN_23in_23PCF8575 0x21 (pcf_inputs_15to28)9 (P11)yes
IN_24in_24PCF8575 0x21 (pcf_inputs_15to28)10 (P12)yes
IN_25in_25PCF8575 0x21 (pcf_inputs_15to28)11 (P13)yes
IN_26in_26PCF8575 0x21 (pcf_inputs_15to28)12 (P14)yes
IN_27in_27PCF8575 0x21 (pcf_inputs_15to28)13 (P15)yes
IN_28in_28PCF8575 0x21 (pcf_inputs_15to28)14 (P16)yes
IN_29in_29PCF8574 0x22 (pcf_inputs_28to35_menu)0 (P0)yes
IN_30in_30PCF8574 0x22 (pcf_inputs_28to35_menu)1 (P1)yes
IN_31in_31PCF8574 0x22 (pcf_inputs_28to35_menu)2 (P2)yes
IN_32in_32PCF8574 0x22 (pcf_inputs_28to35_menu)3 (P3)yes
IN_33``PCF8574 0x22 (pcf_inputs_28to35_menu)4 (P4)yes
IN_34``PCF8574 0x22 (pcf_inputs_28to35_menu)5 (P5)yes
IN_35``PCF8574 0x22 (pcf_inputs_28to35_menu)6 (P6)yes

Outputs

YAML IDNameOnPinInverted
cover_open_01_out01PCF8575 0x21 (pcf_left)15 (P17)yes
cover_close_01_out02PCF8575 0x21 (pcf_left)14 (P16)yes
cover_open_02_out03PCF8575 0x21 (pcf_left)13 (P15)yes
cover_close_02_out04PCF8575 0x21 (pcf_left)12 (P14)yes
cover_open_03_out05PCF8575 0x21 (pcf_left)11 (P13)yes
cover_close_03_out06PCF8575 0x21 (pcf_left)10 (P12)yes
cover_open_04_out07PCF8575 0x21 (pcf_left)9 (P11)yes
cover_close_04_out08PCF8575 0x21 (pcf_left)8 (P10)yes
cover_open_05_out09PCF8575 0x20 (pcf_right)15 (P17)yes
cover_close_05_out10PCF8575 0x20 (pcf_right)14 (P16)yes
cover_open_06_out11PCF8575 0x20 (pcf_right)13 (P15)yes
cover_close_06_out12PCF8575 0x20 (pcf_right)12 (P14)yes
cover_open_07_out13PCF8575 0x20 (pcf_right)11 (P13)yes
cover_close_07_out14PCF8575 0x20 (pcf_right)10 (P12)yes
cover_open_08_out15PCF8575 0x20 (pcf_right)9 (P11)yes
cover_close_08_out16PCF8575 0x20 (pcf_right)8 (P10)yes
out_17Switch 17PCF8575 0x21 (pcf_left)0 (P00)yes
out_18Switch 18PCF8575 0x21 (pcf_left)1 (P01)yes
out_19Switch 19PCF8575 0x21 (pcf_left)2 (P02)yes
out_20Switch 20PCF8575 0x21 (pcf_left)3 (P03)yes
out_21Switch 21PCF8575 0x21 (pcf_left)4 (P04)yes
out_22Switch 22PCF8575 0x21 (pcf_left)5 (P05)yes
out_23Switch 23PCF8575 0x21 (pcf_left)6 (P06)yes
out_24Switch 24PCF8575 0x21 (pcf_left)7 (P07)yes
out_25Switch 25PCF8575 0x20 (pcf_right)0 (P00)yes
out_26Switch 26PCF8575 0x20 (pcf_right)1 (P01)yes
out_27Switch 27PCF8575 0x20 (pcf_right)2 (P02)yes
out_28Switch 28PCF8575 0x20 (pcf_right)3 (P03)yes
out_29Switch 29PCF8575 0x20 (pcf_right)4 (P04)yes
out_30Switch 30PCF8575 0x20 (pcf_right)5 (P05)yes
out_31Switch 31PCF8575 0x20 (pcf_right)6 (P06)yes
out_32Switch 32PCF8575 0x20 (pcf_right)7 (P07)yes

Other pins

FunctionNameOnPinInverted
ethernet.clkethESP32GPIO0—
switch.gpioBuzzerESP32GPIO2—
ethernet.power_pinethESP32GPIO16—
ethernet.mdio_pinethESP32GPIO18—
ethernet.mdc_pinethESP32GPIO23—

v0.7+

Source: boneio-cover_mix_switches_v0_7.yaml

I2C buses

BusSDASCL
i2c_busGPIO17GPIO33

Chips on I2C

ChipBusAddressYAML ID
PCF8575i2c_bus0x20pcf_inputs_1to14
PCF8575i2c_bus0x21pcf_inputs_15to28
PCF8574i2c_bus0x22pcf_inputs_28to35_menu
PCF8575i2c_bus0x23pcf_left
PCF8575i2c_bus0x24pcf_right
SH1106_128X64i2c_bus0x3Coled_display
ina219i2c_bus0x40
lm75i2c_bus0x48boneIO_temp

Inputs

NameYAML IDOnPinInverted
boneIO_buttonboneIO_buttonPCF8574 0x22 (pcf_inputs_28to35_menu)7 (P7)yes
IN_01in_01PCF8575 0x20 (pcf_inputs_1to14)0 (P00)yes
IN_02in_02PCF8575 0x20 (pcf_inputs_1to14)1 (P01)yes
IN_03in_03PCF8575 0x20 (pcf_inputs_1to14)2 (P02)yes
IN_04in_04PCF8575 0x20 (pcf_inputs_1to14)3 (P03)yes
IN_05in_05PCF8575 0x20 (pcf_inputs_1to14)4 (P04)yes
IN_06in_06PCF8575 0x20 (pcf_inputs_1to14)5 (P05)yes
IN_07in_07PCF8575 0x20 (pcf_inputs_1to14)6 (P06)yes
IN_08in_08PCF8575 0x20 (pcf_inputs_1to14)8 (P10)yes
IN_09in_09PCF8575 0x20 (pcf_inputs_1to14)9 (P11)yes
IN_10in_10PCF8575 0x20 (pcf_inputs_1to14)10 (P12)yes
IN_11in_11PCF8575 0x20 (pcf_inputs_1to14)11 (P13)yes
IN_12in_12PCF8575 0x20 (pcf_inputs_1to14)12 (P14)yes
IN_13in_13PCF8575 0x20 (pcf_inputs_1to14)13 (P15)yes
IN_14in_14PCF8575 0x20 (pcf_inputs_1to14)14 (P16)yes
IN_15in_15PCF8575 0x21 (pcf_inputs_15to28)6 (P06)yes
IN_16in_16PCF8575 0x21 (pcf_inputs_15to28)5 (P05)yes
IN_17in_17PCF8575 0x21 (pcf_inputs_15to28)4 (P04)yes
IN_18in_18PCF8575 0x21 (pcf_inputs_15to28)3 (P03)yes
IN_19in_19PCF8575 0x21 (pcf_inputs_15to28)2 (P02)yes
IN_20in_20PCF8575 0x21 (pcf_inputs_15to28)1 (P01)yes
IN_21in_21PCF8575 0x21 (pcf_inputs_15to28)0 (P00)yes
IN_22in_22PCF8575 0x21 (pcf_inputs_15to28)8 (P10)yes
IN_23in_23PCF8575 0x21 (pcf_inputs_15to28)9 (P11)yes
IN_24in_24PCF8575 0x21 (pcf_inputs_15to28)10 (P12)yes
IN_25in_25PCF8575 0x21 (pcf_inputs_15to28)11 (P13)yes
IN_26in_26PCF8575 0x21 (pcf_inputs_15to28)12 (P14)yes
IN_27in_27PCF8575 0x21 (pcf_inputs_15to28)13 (P15)yes
IN_28in_28PCF8575 0x21 (pcf_inputs_15to28)14 (P16)yes
IN_29in_29PCF8574 0x22 (pcf_inputs_28to35_menu)0 (P0)yes
IN_30in_30PCF8574 0x22 (pcf_inputs_28to35_menu)1 (P1)yes
IN_31in_31PCF8574 0x22 (pcf_inputs_28to35_menu)2 (P2)yes
IN_32in_32PCF8574 0x22 (pcf_inputs_28to35_menu)3 (P3)yes
IN_33``PCF8574 0x22 (pcf_inputs_28to35_menu)4 (P4)yes
IN_34``PCF8574 0x22 (pcf_inputs_28to35_menu)5 (P5)yes
IN_35``PCF8574 0x22 (pcf_inputs_28to35_menu)6 (P6)yes

Outputs

YAML IDNameOnPinInverted
cover_open_01_out01PCF8575 0x23 (pcf_left)15 (P17)yes
cover_close_01_out02PCF8575 0x23 (pcf_left)14 (P16)yes
cover_open_02_out03PCF8575 0x23 (pcf_left)13 (P15)yes
cover_close_02_out04PCF8575 0x23 (pcf_left)12 (P14)yes
cover_open_03_out05PCF8575 0x23 (pcf_left)11 (P13)yes
cover_close_03_out06PCF8575 0x23 (pcf_left)10 (P12)yes
cover_open_04_out07PCF8575 0x23 (pcf_left)9 (P11)yes
cover_close_04_out08PCF8575 0x23 (pcf_left)8 (P10)yes
cover_open_05_out09PCF8575 0x24 (pcf_right)15 (P17)yes
cover_close_05_out10PCF8575 0x24 (pcf_right)14 (P16)yes
cover_open_06_out11PCF8575 0x24 (pcf_right)13 (P15)yes
cover_close_06_out12PCF8575 0x24 (pcf_right)12 (P14)yes
cover_open_07_out13PCF8575 0x24 (pcf_right)11 (P13)yes
cover_close_07_out14PCF8575 0x24 (pcf_right)10 (P12)yes
cover_open_08_out15PCF8575 0x24 (pcf_right)9 (P11)yes
cover_close_08_out16PCF8575 0x24 (pcf_right)8 (P10)yes
out_17Switch 17PCF8575 0x23 (pcf_left)0 (P00)yes
out_18Switch 18PCF8575 0x23 (pcf_left)1 (P01)yes
out_19Switch 19PCF8575 0x23 (pcf_left)2 (P02)yes
out_20Switch 20PCF8575 0x23 (pcf_left)3 (P03)yes
out_21Switch 21PCF8575 0x23 (pcf_left)4 (P04)yes
out_22Switch 22PCF8575 0x23 (pcf_left)5 (P05)yes
out_23Switch 23PCF8575 0x23 (pcf_left)6 (P06)yes
out_24Switch 24PCF8575 0x23 (pcf_left)7 (P07)yes
out_25Switch 25PCF8575 0x24 (pcf_right)0 (P00)yes
out_26Switch 26PCF8575 0x24 (pcf_right)1 (P01)yes
out_27Switch 27PCF8575 0x24 (pcf_right)2 (P02)yes
out_28Switch 28PCF8575 0x24 (pcf_right)3 (P03)yes
out_29Switch 29PCF8575 0x24 (pcf_right)4 (P04)yes
out_30Switch 30PCF8575 0x24 (pcf_right)5 (P05)yes
out_31Switch 31PCF8575 0x24 (pcf_right)6 (P06)yes
out_32Switch 32PCF8575 0x24 (pcf_right)7 (P07)yes

Other pins

FunctionNameOnPinInverted
ethernet.clkethESP32GPIO0—
switch.gpioBuzzerESP32GPIO2—
ethernet.power_pinethESP32GPIO16—
ethernet.mdio_pinethESP32GPIO18—
ethernet.mdc_pinethESP32GPIO23—