mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-21 18:36:48 +00:00
1.7 KiB
1.7 KiB
layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release | ha_iot_class |
---|---|---|---|---|---|---|---|---|---|---|---|
page | Raspihats Switch | Instructions how to integrate Raspihats add-on boards for Raspberry PI into Home Assistant as a switch. | 2017-05-15 04:20 | true | false | true | true | raspihats.png | Switch | 0.45 | Local Push |
The raspihats
switch platform allows you to control the digital outputs of your raspihats boards.
To use your raspihats boards in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
switch:
- platform: raspihats
i2c_hats:
- board: DI6acDQ6rly
address: 0x60
channels:
- index: 0
name: Fan Office
invert_logic: true
initial_state: true
- index: 1
name: Light Office
Configuration variables:
- i2c_hats (Optional): Array of used I2C-HATs.
- board (Required): The board name.
- address (Required): The board I2C address, hex value.
- channels (Required): Array of used digital output channels.
- index (Required): Digital output channel index.
- name (Required): Friendly name to use for the frontend.
- invert_logic (Optional): Inverts the output logic, default is
False
. - initial_state (Optional): Initial state, default is
None
, can also beTrue
orFalse
.None
means no state is forced on the corresponding digital output when this switch is instantiated.
- channels (Required): Array of used digital output channels.
For more details about the Raspihats add-on boards for Raspberry PI, visit raspihats.com.