Expander used in relay board. You likely must have this configured. By default one relay board has 2 MCP23017 installed.
output:
- id: kitchenlight
kind: mcp
mcp_id: mcp2
pin: 15
output_type: light
restore_state: True
{kind}_{pin}
) - ID to use. It’s used for GPIO input actions and send to HA.['gpio', 'mcp']
) - What kind of output it is. For relay board alwas use mcp
['switch', 'light', 'none']
) - What type of output it is. Switch/light shows as such device in Home Assistant. Value none means that this output is not published to MQTT. It’s internal use only for other component eg cover.state.json
file, which is located in same directory as your config.json
. If output_type
is None, then this value is overwritten to False!