Welcome to our Knowledge Base
Configure USB device in Homeassistant
**Warning: This procedure has not been fully tested, but is intended to help reduce issues associated with USB path and path changing problems when using docker and VM
Summary
- Confirm host system recognizes USB device
- Mount the USB device to the VM
- SSH into host system to determine USB device ID
- Update homeassistant configuration with device id
- Restart the system
Detailed Procedure
1. Confirm host system recognizes USB device
- On Synology DSM: Control Panel –> Info Center –> External Devices and confirm usb device exists

2. Mount the USB device to the VM
- On Synology Virtual Machine Manager –> Virtual Machine –> Shut Down –> Edit –> Others –> Mount the USB device (use USB2 for ESPHOME)

3. SSH into host system to determine USB device ID
- SSH into host system hassio using Terminal Window Addon and type
ls -l /dev/serial/by-id/*
results should return something like

4. Update homeassistant configuration with device id
- Use visual studio code editor Addon to modify core.config_entries file
- Search for “usb_path”
- edit the path to include entry above. For example
"usb_path": "/dev/serial/by-id/usb-0658_0200-if00"
Restart the system
- Restart the Synology VM
Virtual Machine Manager –> Virtual Machine –> restart - Confirm all works
