gateway on hass.io - not getting the sensors
-
I am relocating my network from veralite to home assistant and encountering some problems.
The HASS server runs on a raspberry Pi 3 through hass.io
The serial gateway appears to be properly running but there is no sign of life in home assistant beside a configuration file being created with json values about only one of the many nodes I have. No device is being created in the the webUI.
The/config/mysensors.json
file looks like this:{ "0":{ "sensor_id":0, "children":{ }, "type":18, "sketch_name":null, "sketch_version":null, "battery_level":0, "protocol_version":"2.1.1" }, "7":{ "sensor_id":7, "children":{ "0":{ "id":0, "type":1, "description":"", "values":{ } }, "1":{ "id":1, "type":4, "description":"", "values":{ } }, "2":{ "id":2, "type":3, "description":"", "values":{ } }, "3":{ "id":3, "type":25, "description":"", "values":{ } } }, "type":17, "sketch_name":"mySensors Picture Frame", "sketch_version":"1.5", "battery_level":0, "protocol_version":"2.0.0" } }
To check whether the gateway can receive any input, I have changed the code on one of my sensor and updated - among the rest - the version number from
1.5
to1.6
. As you may see in the file above, this was not picked up by home assistant in any way.In general, I am having a hard time troubleshooting what is wrong because I get not debug information regarding mysensors despite the fact this is properly (I think) configured in the
configuration.yaml
file. Here's the relevant portion.
Any idea of what could be going wrong? Does anyone have a hello_world sketch that is known to be working with homeassistant that I could try? Thanks?logger: default: info logs: requests.packages.urllib3.connectionpool: critical requests.packages.urllib3: critical urllib3.connectionpool: critical homeassistant.components.cameras: fatal homeassistant.components.mysensors: debug mysensors: gateways: - device: '/dev/ttyUSB0' persistence_file: '/config/mysensors.json' baud_rate: 115200 optimistic: false persistence: true version: 2.0
-
Have a look at this thread. Maybe the latest release will show some logging for you?
https://community.home-assistant.io/t/mysensors-mqtt-gateway-integration/39743/3
-
Serial logs from both a node and gateway can usually help pinpointing issues in the mysensors part of the comm link. This can also be used to rule out problems in that part.
Is the mysensors serial gateway running on a standalone arduino connected via USB to the RPi3?
-
@hautomate I am already running version 0.61.1
@martinhjelmare Yes, it's the same serial gateway that used to be connected to my veralite. The Pi3 is powered by a 3A power supply so there's should be enough juice for everyone.
Not sure how to intercept the serial log from the gateway, though. I've usedsocat
for this purpose in the past but I doubt I can do from within a hassio instance.
-
Ok, so this miraculously started to work today after 48h. Obviously, I did not change anything myself. Go figure.
-
@giorgio-gilestro said in gateway on hass.io - not getting the sensors:
Not sure how to intercept the serial log from the gateway, though. I've used socat for this purpose in the past but I doubt I can do from within a hassio instance.
I think you can see that if you SSH to the host.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Home Assistant/MySensors quirks
Development • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51