How to add capabilities - NET_ADMIN - NET_RAW on Supervised HA?

I use HA Docker version running by supervisor

i need to add yeelightbt to control yeelight Bluetooth bulbs

i can’t find Bluetooth devices, looks like this step is missing

The docker-compose (or equivalent docker command) should have:
cap_add:
 - NET_ADMIN
 - NET_RAW
network_mode: host

how and where I can add this?

anybody can help?

What command do you use to start HA?

The standard command per the HA docs is

docker run -d --name="home-assistant" -v /PATH_TO_YOUR_CONFIG:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant:stable

So as it says in the docs for that custom component

docker run -d --name="home-assistant" -v /PATH_TO_YOUR_CONFIG:/config -v /etc/localtime:/etc/localtime:ro --cap-add=NET_ADMIN, NET_RAW --net=host homeassistant/home-assistant:stable
1 Like

Thanks, how to know the path to current configs?

Supervisor created configs during installation

So you are running supervised? I perhaps read that wrong. I am unsure how to alter the capabilities in that case.

Someone, please help!

Come on now, this isn’t even part of home assistant. It is a 3rd party addon. Why not ask on the 3rd party’s github issues page?

Be attentive, i’m asking about how to control home assistant software
hass-yeelightbt it’s just a case why I need it

That is not a home assistant integration. It is a 3rd party integration.

See https://github.com/home-assistant/core/tree/dev/homeassistant/components - no yeelightbt

See https://www.home-assistant.io/integrations/#all - not there.

Be attentive please.

Ok. Let’s think another way. Forgot about integrations. Does not matter why I need this.

The question is: how to control Supervised home assistant software? There are some configs that supervisor uses when control containers, where are they placed, how to change it?

I believe that the question would be best answered on github issues.

I also doubt that the devs will want you fiddling with these parameters.

I am also not sure that it is needed if you look at the issues section on https://github.com/hcoohb/hass-yeelightbt

Are you human or I’m talking to robot? :slight_smile:
forget about integration

I want to know HOW TO CONTROL SUPERVISED HOME ASSISTANT FOR MY PERSONAL PURPOSES

That is why I suggest you discuss it on github (and in this post and the last one I meant home assistant’s github issues, sorry if that wasn’t clear). And please stop shouting.

Same issue here. Supervised HA, yeelight bt scan not working - permission error.
How to add cap_add?

Supervised or haos?

Supervised