Unable to connect to /dev/ttyUSB0 [Solved]



  • If I had any hair I would have pulled it all out trying to configure MySensors with HASS 🤷‍♂️

    I don't understand as I have it working fine in Domoticz configured as dev/ttyUSB0 so why can't HASS connect?!

    settings ini configuration.yaml are:

    mysensors:
    gateways:
    - device: '/dev/ttyUSB0'
    persistence file: '/home/homeassistant/.homeassistant/mysensors.json'
    baud_rate: 115200
    optimistic: false
    persistence: true
    retain: true

    It's been ages since I set this up in Domoticz, I do vaguely recall having issues but that might have just been detecting sensors.


  • Mod

    I remember something about adding user permissions to the serial port but I'm not entirely sure since I never used serial gw



  • Thanks @gohan !! Another google about accessing usb and found some detail about adding to the dialout group. So I did this:

    sudo adduser homeassistant dialout

    It doesn't work unless you reboot but its now connecting to the usb!! I'm getting other errors about my sensors now but this is progress at least! Thanks 🙂


Log in to reply
 

359
Online

6.9k
Users

7.8k
Topics

82.8k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.