#12 Bluetooth for home assistant requires more plugs

باز‌کردن
2 سال پیش باز شده توسط Kodsama · 3 دیدگاه

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 نظر 2 سال پیش
نویسنده

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 نظر 2 سال پیش
نویسنده

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: ```
برای پیوستن به گفتگو، وارد شودید.
بدون برچسب
بدون نقطه عطف
بدون مسئول رسیدگی
2 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.