UGREEN NAS DXP2800 - Home Assistant available?

Hi,

Is it possible to install Home Assistant on the new Ugreen NAS systems?

Thanks

1 Like

Yes, you can leverage Docker which was released by the UGreen team. It’s a little tricky and I’m trying to get a Bluetooth dongle attached but can’t figure it out so I might drop this implementation until I can get that figured out.

1 Like

Hi - did you ever solve the issue? I’m hoping to leverage Home Assistant on a UGreen NAS

I did not; I plan to try again now that UGreen NAS supports VMs to see if I can get the bluethooth dongle attached to the VM. I could not figured it out via Docker.

Im interested to hear how it goes. I plan to try this as soon as my hard drives are delivered in a week or so.

Hi,

I also have HA running on DXP2800 in a VM after switching from a Docker container.
Got the same help question and got the following response in the German Ugreen facebook group.

Google translate(d) : Rail transport for those who are interested: I have now managed to do it via the shell. You don’t have to install anything, just attach the USB device to the HA VM with “virsh”. Command: “virsh attach-device --file usb_irsensor.xml --config” The XML contains vendorID + productID.

Personally I do not get a good overview of the USB ports like above described. I get the following response:

âžś ~ lsusb -v
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 0627:0001
Bus 002 Device 001: ID 1d6b:0003

I do not see the exact device name. In may case a Sonoff zigbee dongle.

Any help is welcome.

Thx!

I get this results for lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

You may need to install missing Bluetooth Driver (bluez) for Debian.

I tried to get HAOS up and running today on my DXP2800 using a Virtual Machine…didn’t go so well…I’ll probably try again next week when I have more time to mess around with it.

Has anyone gotten HA up in a docker container? I’ve got a docker container running with HA but I can’t seem to access it.

Okay, so I figured it out using this very helpful piece of information.

  1. Enable SSH. SSH into your UG NAS device.
  2. Run lsusb -v, find your device in the list and copy the vendorID and productCode. See my example below for a Bluetooth Dongle.
  idVendor           0x0a12 Cambridge Silicon Radio, Ltd
  idProduct          0x0001 Bluetooth Dongle (HCI mode)
  1. Create an XML (usb.xml) file with the following format and upload to your user folder on the NAS, this should end up being the root directory of where you SSH.
<hostdev mode='subsystem' type='usb' managed='yes'>
  <source>
    <vendor id='0x0a12' />
    <product id='0x0001' />
  </source>
</hostdev>
  1. IMPORTANT STEP: Be sure to run the next command in sudo or it won’t return any VMs. sudo virsh list
    This ended up giving me the following: ID - Name - Status. The Name was in GUID format. I only had one VM for HA so it was easy for me to know which VM to pick.
  2. Run the following to attach your device: sudo virsh attach-device <VM-GUID-HERE> --file usb.xml --persistent
    You can use --config to attach the device, but if you reboot your NAS it will not auto connect so I used --persistent to let it auto connect.

I hope this helps!

1 Like

Hello Erudo,

First of all, thank you for your instructions.

Unfortunately, I can’t get past the last command.

When I send the GUI entries and the command, the message comes back:

-bash: 8a24ed4a-0ccc-4491-900b-dc3771e26282: No such file or directory

But I have saved the XML file in the user folder.

Perhaps you can still help me with that.

make sure the xml file ist in the root directory