Version
0.4.x

MCP23017 expander


MCP23017

I2C expander used in relay boards. You likely must have this configured. By default one relay board has 2 MCP23017 installed.

Example config

mcp23017:
  - id: mcp1
    address: 0x20
  - id: mcp2
    address: 0x21

Configuration variables:

  • id (Required, string) - ID to use. It’s internal usage only, but you need to define it so you can define output pins properly.
  • address (Required, string) - I2C address of the device
  • init_sleep (Optional, timeperiod, default: 0s) - how long to wait for MCP23017 to respond. Some MCP23017 has delay during initializing. This option will wait for X second for device to respond.