Please also see related discussions here → "Sonoff iHost" (smart home hub/computer) from ITead - Can it be hacked to run Home Assistant OS with Bluetooth, Thread/Matter, and ZHA integrations?
I do not think that can be a feature request for Home Assistant but should be a request to ITead/Sonoff?
Zigbee applications like Zigbee2MQTT or Home Assistant’s ZHA integration need serial port access.
To get that then ITead/Sonoff wouild either have to offer a “serial server” daemon (like ser2net serial to network proxy) for localhost access over TCP/IP from Zigbee gateway applications via socat utility (socket relay utility), or alternatively, ITead/Sonoff could just offer the ability to configure serial device forwarding with the serial device path mappable to the container via something like Docker Compose for direct serial device access, e.i. ITead/Sonoff would need to enable some way for the iHost operating system to expose and give access to the host’s serial device from inside Docker containers via some kind of serial port/device passthrough method.
https://www.zigbee2mqtt.io/advanced/remote-adapter/connect_to_a_remote_adapter.html
https://www.zigbee2mqtt.io/advanced/remote-adapter/connect_to_a_remote_sonoff_zbbridge.html
serial:
port: 'tcp://[IP]:[PORT]'
adapter: ezsp
https://www.home-assistant.io/integrations/zha#zigate-or-sonoff-zbbridge-devices
- Sonoff ZBBridge : `socket://[IP]:[PORT]` for example `socket://192.168.1.11:8888`
https://www.losant.com/blog/how-to-access-serial-devices-in-docker
https://www.homeautomationguy.io/blog/docker-tips/accessing-usb-devices-from-docker-containers
https://www.home-assistant.io/integrations/zha#cant-connect-to-usb-device-and-using-docker
version: '2'
services:
homeassistant:
# customizable name
container_name: home-assistant
# must be image for your platform, this is the rpi3 variant
image: homeassistant/raspberrypi3-homeassistant
volumes:
- <DIRECTORY HOLDING HOME ASSISTANT CONFIG FILES>:/config
- /etc/localtime:/etc/localtime:ro
devices:
# your usb device forwarding to the docker image
- /dev/ttyUSB0:/dev/ttyUSB0
restart: always
network_mode: host