Open LeVraiRoiDHyrule opened 8 months ago
I just tested using Docker network mode host, and it works. So there is something with using macvlan driver that doesn't work with BLE monitor. But I would be very interested to find out what it is, as macvlan should work very similar to network host mode, it allows to have bridge network in addition to having an IP / Mac address on the physical network.
I can’t help you with this, I never used docker. In the faq are some tips for issues with docker installations but I’m not sure if it applies to your issue.
BLE monitor is using Bluetooth at a lower level, bij making HCI dumps, compared to the official Bluetooth integration. IHA needs proper access to perform this operation.
I’m dealing with the same problem as you.
I have no problems and HA in docker can use two different adapters one is internal card intel ax210 second is dongle Edup EP-B3536GS, my docker-compose looks like this:
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host
I can't remember what exactly I had to setup or why it's working, it was long ago, but I think privileged flag could be the answer
Hey. I'm in the same boat - I am setting back up on an rpi4 - so need to use an external usb adapter. This rpi4 already host some services so trying to set up using macvlan (to keep my original IP). Running
What happened?
Hi, I would like to use this with HA on Docker using macvlan networking mode instead of host mode. This mode allows to attribute a mac address for the container (HA) on the LAN. This allows for features that would normally require host mode, like DLNA, without the problems of host mode (impossibility to join a Docker virtual network).
I was using BLE Monitor before with host mode, and I would like to use it with macvlan. I have set my HA this way:
PUID=0 PGID=0
means I am running as root. I checked that Bluetooth works on the main system.The bluetooth adapter is seen by HA's bluetooth integration:
HA's Xiaomi BLE integration automatically found my BLE device (MiScale Body Composition 2) and was able to retrieve the weight:
But this is non-stabilized weight and I would like impedance in addition to this value.
But BLE monitor fails to find the adapter:
I know this is an uncommon setup but I would like to ask for some help and knowledge to dig a bit more into this.
What, in your opinion, could cause this issue with macvlan ? What can cause the adapter to be seen by HA and not by BLE Monitor ? Why can HA's Xiaomi BLE integration receive the weight but not BLE Monitor ?
In the log section, you will find the output if I don't use automatic configuration but rather the following YAML:
With this configuration, I have the following error:
2024-01-17 22:18:20.753 ERROR (MainThread) [custom_components.ble_monitor] Bluetooth interface with MAC address 00:1A:7D:DA:71:15 is not available
What could cause the interface to not be available with this config ?
Thanks in advance for any answer and have a great day.
Sensor type
MiScale Body Composition 2
Relevant log output