MCP23017 expander


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

Example config

  - 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, integer, default: 0 secs) - 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.