Welcome to our Knowledge Base

Configure USB device in Homeassistant

You are here:
< Back

**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

  1. Confirm host system recognizes USB device
  2. Mount the USB device to the VM
  3. SSH into host system to determine USB device ID
  4. Update homeassistant configuration with device id
  5. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Table of Contents