LukasGrebe / ha-addons

Addons for Home Assistant
GNU General Public License v3.0
37 stars 42 forks source link

Suggesting to update DOCS.md with network_device: ens:/dev/ttyUSB0 sample config #44

Closed mousetwentytwo closed 1 year ago

mousetwentytwo commented 1 year ago

The newer ebusd adapters are enhanced or high speed mode by default. Using it over wifi may be unstable and USB mode may be preferred. Connection over USB requires ens: prefix or changing jumpers to work in regular mode. Such prefix is not added for the device: configuration entry when selecting usb device. The network_device: config entry is an alias for custom device string and it supports more than its name suggests. As simple workaround the network_device: configuration entry can have the following value: "ens:/dev/ttyUSB0"

Took some time to realize that the network_device field can be "misused" to make things work properly, maybe it can help others.

DOCS.md:11:

  1. Define either a USB or network device. Seperate configuration entries are available via the UI or can be configured manually using device: /dev/ttyAMA0 or network_device: enh:192.158.0.7:9999 or network_device: ens:/dev/ttyUSB0 (for enhanced or high speed configurations)
tim-devel commented 1 year ago

Thanks for the heads up. I will see if I can add a high speed check box

terual commented 1 year ago

Please also incorporate the enh and udp options next to ens as an option. enh and ens are relevant for USB connections and udp for network.

See the ebusd device documentation for more information.