Expander used in relay board. You likely must have this configured.
output:
- id: kitchenlight
kind: mcp
mcp_id: mcp2
pin: 15
output_type: light
restore_state: True
output:
- id: kitchenlight
kind: pca
pca_id: pca1
pin: 15
output_type: led
restore_state: True
percentage_default_brightness: 1
You can mix outputs in one configuration file, or you can split them to more than one file - check configuration how to load yaml files.
{kind}_{pin}
) - uniquely identifies this device in MQTT and Home Assistant.['gpio', 'mcp']
) - What kind of output it is. For relay board alwas use mcp
['switch', 'light', 'cover', '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. None can be used in groups. Cover is internal only also, but for covers.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!