Closed Br3nda closed 6 years ago
If you have a JSON persistence file we can check that to see if we find a value type with a bad number.
This thread has a similar story: https://community.home-assistant.io/t/mysensors-value-type-101-is-not-valid-for-mysensors-version-2-0/24884
thanks - i've mv mysensors.json mysensors.json.bak
and now the readings are coming in from lots of nodes.
Alas, that only fixed it temporarily. It goes back to not saving any of the nodes after a few minutes.
$ grep "is not a valid SetReq" /var/log/upstart/homeassistant.log
ValueError: 132 is not a valid SetReq
ValueError: 109 is not a valid SetReq
ValueError: 132 is not a valid SetReq
ValueError: 109 is not a valid SetReq
ValueError: 109 is not a valid SetReq
ValueError: 132 is not a valid SetReq
ValueError: 109 is not a valid SetReq
ValueError: 109 is not a valid SetReq
ValueError: 109 is not a valid SetReq
ValueError: 132 is not a valid SetReq
ValueError: 132 is not a valid SetReq
ValueError: 101 is not a valid SetReq
ValueError: 101 is not a valid SetReq
ValueError: 132 is not a valid SetReq
These were working great for a long time -- so what's changed? it seems like whatever condition triggers this stops all mysensors nodes from being understood by HomeAssistant
We have to find out where these values come from. They are not valid value types for set or req messages according to the mysensors serial API. A serial log of a node that has the bad value and a parallel log of home assistant could shed some light.
How about the bad SetReq is caught before it's written to the file? Cos right now, one bad presentation makes all sensors stop working.
All messages received should be validated before being passed on. I'm not sure why that doesn't happen in your case.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍
Home Assistant release (
hass --version
): 0.52.1Python release (
python3 --version
): 3.5.2Component/platform: MySensors (serial gateway)
Description of problem:
I've had a serial Mysensors gateway running for months, and haven't made any config changes for a long long while -- however in a recent hass versions, the readings from sensors cause an error in the HA logs, and does not update that value in HA.
I'm running mysensors version 2 - and a serial gateway is an arduino uno on a usb port
When messages arrive on the USB serial, this appears in the home assistant log file:
The Value changes for every message - the Node_id of the sensor is apparently the interger
132
or109
being used as aSetReq
. (there are about 40 sensors that his gateway can hear)There's one of these errors logged on every message the gateway receives.
Expected:
Problem-relevant
configuration.yaml
entries and steps to reproduce: