Can I install bluez & bluetoothctl on a rpi that has hassio as OS

Can I install bluez & bluetoothctl on a rpi that has hassio as OS?

Ive installed it on rpis with raspbian but never with hassio.

If you are looking to installe on HassOS, then the answer is NO.

The important question is what are you trying to accomplish?

yeah that is the better question. It was something silly really but I dont know how else to do it, im almost sure there is a simpler way w/o getting my rpi2-hassio involved, i just havent researched it yet.

I want to connect to a ble relay board and write characteristics to it in order to control the relays. I do it via python scripts. I have the board’s mac ready to connect to it, but I dont have the service. I havent been able to get the complete service uuid from any of the iphone apps i have installed, and I remember how to use bluez and bluetoothctl to do so. Thats why I wanted to know if i could install them on hassio. Before I installed hassio I did use the ble board from my rpi which has raspbian.

You don’t install anything on HassOS.

You don’t install things in running containers.

Based on your posts about you changing to hassio, you see to be having issues with that transition.

Why not continue running hassbian or run Raspbian with docker or python venv?

no, ive got hassio running fine on my rpi2. This is for mu rpi3 which has raspbian which is currently connected to an old relay board and I want to test out the new relay board but without disturbing my working setup.

Tks

I run HassOS, but I tend to agree with @flamingm0e. HassOS has bluetooth support, but it might be easier to do what you want by installing Raspbian+docker or a python venv. The other options to look at would be to look at a custom component.

“HassOS has bluetooth support” – I just installed 4.11 on a brand new RPI4 and it seems to lack bluetoothctl. I would like to use the bluetooth and BLE trackers and I thought HASS was strongly encouraging folks to use HassOS rather than HASS on top of an OS. And the hassos GIT seems to indicate it should have bluetoothctl. Confused!

HassOS may have bluetoothctl , but since you are running in a container, you won’t have direct access to it via the command line. Installing the SSH add-on just gives you a limited shell, not root access to the OS.

Copy, I’ll run Hassbian and a venv hass. Been there, done that.

Hi! I have the same issue of installing bluez on a raspberry with Hass.io.
I need it because Bluez tool is required on host to integrate a nespresso Prodigio coffee machine that works by bluetooth.
So how do I install it on the host?
apt install bluez?
By ssh wouldn’t it be possible?
I know almost nothing about programming. Any help would be very helpful, thanks in advance