#12 Bluetooth for home assistant requires more plugs

Terbuka
dibuka 2 tahun lalu oleh Kodsama · 3 komentar

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 komentar 2 tahun lalu
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 komentar 2 tahun lalu
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: ```
Masuk untuk bergabung dalam percakapan ini.
Tidak ada Label
Tidak ada tonggak
Tidak ada penerima
2 Peserta
Memuat...
Batal
Simpan
Belum ada konten.