#12 Bluetooth for home assistant requires more plugs

Open
opened 2 years ago by Kodsama · 3 comments
Kodsama commented 2 years ago

Hi!

In order to be able to use bluetooth in home assistant some interfaces should be added (as optional at least) in the snap:

  • dbus
  • bluetooth-control
  • bluez (already available as optional)

Moreover depending on the devices installed these could be of use:

  • gpio
  • gpio-control
  • gpio-memory-control
  • i2c
  • hardware-observe
  • network-setup-observe
  • u2f-devices

Links:

List of interfaces: https://snapcraft.io/docs/supported-interfaces

Bluetooth necessary access for HA: https://rc.home-assistant.io/integrations/bluetooth

Hi! In order to be able to use bluetooth in home assistant some interfaces should be added (as optional at least) in the snap: - dbus - bluetooth-control - bluez (already available as optional) Moreover depending on the devices installed these could be of use: - gpio - gpio-control - gpio-memory-control - i2c - hardware-observe - network-setup-observe - u2f-devices Links: List of interfaces: https://snapcraft.io/docs/supported-interfaces Bluetooth necessary access for HA: https://rc.home-assistant.io/integrations/bluetooth

Hi,

Feel free to make a PR with the plugs needed. Make sure you test the plugs you add.

Hi, Feel free to make a PR with the plugs needed. Make sure you test the plugs you add.
Kodsama commented 2 years ago
Poster

I unfortunately never developped a snap so I am unsure how I could properly test them :'(

I unfortunately never developped a snap so I am unsure how I could properly test them :'(
Kodsama commented 2 years ago
Poster

I have some problems pushing to the repo (get an error 403 back).

Here is my proposed change:

diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 3441f6e..77da1ed 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -130,14 +130,24 @@ apps:
     restart-condition: always
     plugs: 
       - bluez
+      - bluetooth-control
+      - dbus
       - network
       - network-bind
       - network-control
       - hardware-observe
       - raw-usb
+      - raw-input
       - serial-port
       - physical-memory-control
       - removable-media
+      - gpio
+      - gpio-control
+      - gpio-memory-control
+      - i2c
+      - network-observe
+      - u2f-devices    
     slots: 
       - components
   open-localhost:
I have some problems pushing to the repo (get an error 403 back). Here is my proposed change: ``` diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 3441f6e..77da1ed 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -130,14 +130,24 @@ apps: restart-condition: always plugs: - bluez + - bluetooth-control + - dbus - network - network-bind - network-control - hardware-observe - raw-usb + - raw-input - serial-port - physical-memory-control - removable-media + - gpio + - gpio-control + - gpio-memory-control + - i2c + - network-observe + - u2f-devices slots: - components open-localhost: ```
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.