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
2023-05-16 Home Assistant adaptation to expected kernel change - master branch - PR 1 of 2
Background:
- SensorsIot#690 – Kernel update may remove /dev/ttyAMA0
- [Home Assistant documentation](https://www.home-assistant.io/installation/raspberrypi#docker-compose)
Changes:
1. Removes Bluetooth-specific volumes and devices from template.
2. Removes Pi-hardware-specific image options (still available but no
longer mentioned in the Home Assistant documentation; and not relevant
where IOTstack may be deployed on non-Pi hardware).
3. Adds documentation to Home Assistant wiki page (master branch) to
explain how to re-add volumes and devices if Bluetooth support is
required on a Raspberry Pi:
- This means Home Assistant will launch successfully on non-Pi
hardware.
- Documentation references `/dev/serial1` rather than `/dev/ttyAMA0`
as the external device but maintains the latter as the internal device.
3. Removes documentation from the Home Assistant wiki page (master
branch) where Pi-hardware-specific image options were discussed.
Signed-off-by: Phill Kelley <34226495+Paraphraser@users.noreply.github.com>
The active image is *generic* in the sense that it should work on any platform. You may wish to edit your `docker-compose.yml` to deactivate the generic image in favour of an image tailored to your hardware.
56
-
57
47
The normal IOTstack commands apply to Home Assistant Container such as:
58
48
59
49
```console
@@ -98,6 +88,30 @@ If `AutoEnable` is either missing or not set to `true`, then:
98
88
99
89
See also: [Scribles: Auto Power On Bluetooth Adapter on Boot-up](https://scribles.net/auto-power-on-bluetooth-adapter-on-boot-up/).
100
90
91
+
### Possible service definition changes { #serviceDefinition }
92
+
93
+
Although the [Home Assistant documentation](https://www.home-assistant.io/installation/raspberrypi#docker-compose) does not mention this, it is *possible* that you may also need to make the following changes to the Home Assistant service definition in your `docker-compose.yml`:
94
+
95
+
* Add the following mapping to the `volumes:` clause:
* These changes are *specific* to the Raspberry Pi. If you need Bluetooth support on non-Pi hardware, you will need to figure out the details for your chosen platform.
113
+
* Historically, `/dev/ttyAMA0` meant "the serial interface" on Raspberry Pis. Subsequently, it came to mean "the Bluetooth interface" where Bluetooth support was present. Now, `/dev/serial1` is used to mean "the Raspberry Pi's Bluetooth interface". The example above maps that to the internal device `/dev/ttyAMA0` because that is **probably** what the container expects. There are no guarantees and you may need to experiment with internal device names.
114
+
101
115
## HTTPS with a valid SSL certificate { #httpsWithSSLcert }
102
116
103
117
Some HA integrations (e.g google assistant) require your HA API to be
0 commit comments