You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/switch.raspihats.markdown
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,4 +45,48 @@ Configuration variables:
45
45
- **invert_logic** (*Optional*): Inverts the output logic, default is `False`.
46
46
- **initial_state** (*Optional*): Initial state, default is `None`, can also be `True` or `False`. `None` means no state is forced on the corresponding digital output when this switch is instantiated.
47
47
48
+
49
+
## {% linkable_title Directions for installing smbus support on Raspberry Pi %}
50
+
51
+
Enable I2c interface with the Raspberry Pi configuration utility:
52
+
53
+
```bash
54
+
# pi user environment: Enable i2c interface
55
+
$ sudo raspi-config
56
+
```
57
+
58
+
Select `Interfacing options->I2C` choose `<Yes>` and hit `Enter`, then go to `Finish`.
59
+
60
+
Install dependencies for use the `smbus-cffi` module and enable your _homeassistant_ user to join the _i2c_ group:
61
+
62
+
```bash
63
+
# pi user environment: Install i2c dependencies and utilities
0 commit comments