@archiijs said in MySensor on Hass.io - can't get it work:
@maty said in MySensor on Hass.io - can't get it work:
e code isn't mine (made by my friend), I've been using it with Domoticz for almost a year, and it worked perfectly. But recently i decided to give a try to Hass.io, and I really like it. But I still have a problem with lights connected via MySensors (Arduino Mega conected to Rpi via USB), can't get it work with Hass.io. Config part in configuration.yaml look
I have no experience with hass.io, but some comments arise.
- Your configuration.yaml file path seems to be incorrect. You have to edit this to real path, something like "/user/.homeassistant/mysensors.json" or whatever. The path should exist, file there will be created if it is correct and writeable.
- You should check if your USB port is really /dev/ttyUSB0 usually command "lsusb" is used, but I'm not sure how to do this in hass.io
- Also, check if USB port speed is the same as in mysensors gateway and your configuration. 38400 seems different than the standard what usually is 115200 if I'm not mistaken.
EDIT: Ok, baud seems to match, so that should not be an issue.
Ad.1. I tried different path too (default one '/config/mysensors.json') - still wrong. I'm not sure how these .json files works, so maybe I'm still makeing sthg wrong. (Maybe someone can share me a link with an explanation or write a few words about it?)
Ad.2. USB is correct I checked (besides i have RFLink on the ttyUSB1 and it works great).
Ad.3. As You said at the end ... baud should be OK.