From b2d352aeb2591edf99ca3a31b90c759a2c5959b1 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 4 Jun 2017 22:38:37 +0200 Subject: [PATCH] Add bcm43xx --- bluetooth_bcm43xx/Dockerfile | 13 +++++++++++++ bluetooth_bcm43xx/config.json | 14 ++++++++++++++ bluetooth_bcm43xx/run.sh | 5 +++++ 3 files changed, 32 insertions(+) create mode 100644 bluetooth_bcm43xx/Dockerfile create mode 100644 bluetooth_bcm43xx/config.json create mode 100644 bluetooth_bcm43xx/run.sh diff --git a/bluetooth_bcm43xx/Dockerfile b/bluetooth_bcm43xx/Dockerfile new file mode 100644 index 0000000..756dbaa --- /dev/null +++ b/bluetooth_bcm43xx/Dockerfile @@ -0,0 +1,13 @@ +FROM %%BASE_IMAGE%% + +# Add env +ENV LANG C.UTF-8 + +# Setup base +RUN apk add --no-cache tzdata jq bluez + +# Copy data +COPY run.sh / +RUN chmod a+x /run.sh + +CMD [ "/run.sh" ] diff --git a/bluetooth_bcm43xx/config.json b/bluetooth_bcm43xx/config.json new file mode 100644 index 0000000..df96a72 --- /dev/null +++ b/bluetooth_bcm43xx/config.json @@ -0,0 +1,14 @@ +{ + "name": "Bluetooth BCM43xx", + "version": "0.1", + "slug": "Bluetooth_bcm43xx", + "description": "Activate bluetooth for bcm43xx", + "url": "https://home-assistant.io/addons/Bluetooth_bcm43xx/", + "startup": "initialize", + "boot": "auto", + "host_network": "true", + "devices": ["/dev/ttyAMA0:/dev/ttyAMA0:rwm"], + "options": {}, + "schema": {}, + "image": "homeassistant/{arch}-addon-bluetooth_bcm43xx" +} diff --git a/bluetooth_bcm43xx/run.sh b/bluetooth_bcm43xx/run.sh new file mode 100644 index 0000000..1505e6a --- /dev/null +++ b/bluetooth_bcm43xx/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +hciattach /dev/ttyAMA0 bcm43xx 115200 noflow - +hciconfig hci0 up