Mysensors Value_type 101 is not valid for mysensors version 2.0

Running mysensors gateway via RPi3 (dev branch). My log is being spammed out with

2017-08-19 08:09:59 ERROR (MainThread) [homeassistant.components.mysensors] Value_type 101 is not valid for mysensors version 2.0

All the nodes are 2.1 Version
Tried to catch it out. Logs during the error
Gateway

mysgw: TSF:MSG:READ,41-41-0,s=0,c=1,t=0,pt=7,l=5,sg=0:24.4
mysgw: Sending message on topic: mys-out/41/0/1/0/0
mysgw: TSF:MSG:READ,41-41-0,s=4,c=1,t=37,pt=7,l=5,sg=0:102.0
mysgw: Sending message on topic: mys-out/41/4/1/0/37
mysgw: TSF:MSG:READ,31-37-0,s=4,c=1,t=37,pt=7,l=5,sg=0:102.0
mysgw: Sending message on topic: mys-out/31/4/1/0/37
mysgw: TSF:MSG:READ,72-72-0,s=5,c=1,t=0,pt=7,l=5,sg=0:26.2
mysgw: Sending message on topic: mys-out/72/5/1/0/0
mysgw: TSF:MSG:READ,72-72-0,s=4,c=1,t=1,pt=7,l=5,sg=0:55.1
mysgw: Sending message on topic: mys-out/72/4/1/0/1
mysgw: TSF:MSG:READ,72-72-0,s=11,c=1,t=37,pt=7,l=5,sg=0:133.0
mysgw: Sending message on topic: mys-out/72/11/1/0/37
mysgw: TSF:MSG:READ,72-72-0,s=12,c=1,t=37,pt=7,l=5,sg=0:583.0
mysgw: Sending message on topic: mys-out/72/12/1/0/37
mysgw: TSF:MSG:READ,41-41-0,s=5,c=1,t=37,pt=7,l=5,sg=0:114.43
mysgw: Sending message on topic: mys-out/41/5/1/0/37

Mosquitto

mys-out/31/4/1/0/37 102.0
mys-out/72/5/1/0/0 26.2
mys-out/72/4/1/0/1 55.1
mys-out/72/11/1/0/37 133.0
mys-out/72/12/1/0/37 583.0
mys-out/41/5/1/0/37 114.43

To help out
Node 31 Child ID 4 - S_AIR_QUALITY V_LEVEL
Node 72 Child ID4 - S_HUM V_HUM
Node 72 Child ID5 - S_TEMP V_TEMP
Node 72 Child ID’s 11 and 12 S_AIR_QUALITY V_LEVEL
Node 41 Child ID 5 - S_AIR_QUALITY V_LEVEL

You probably have an old bad value in the persistence file. What’s the contents of it?

Where is the persistance file located? When starting mosquitto only see the following persistance messages

$ mosquitto_sub -v -t '#'
/Rozetka-Kids/Relay/Switch 0
/Rozetka-Kids/gpio/12 0
/Rozetka-Kids/LED/Switch 0
/esplight_kor/gpio/12 0
/esplight_kor/Relay/Switch 0
/Monitor/gpio/12 1
/Monitor/Relay/Switch 1
/Monitor/LED/Switch 1
/openhab/in/epsonPower/command OFF
/Rozetka-01/gpio/12 0
mys-in/56/2/1/0/2 0
mys-in/56/1/1/0/2 0
mys-in/72/0/1/0/2 0
mys-in/72/2/1/0/2 0
mys-in/72/3/1/0/2 0
mys-in/41/0/1/0/21 Off
mys-in/41/0/1/0/44 23.0
mys-in/37/1/1/0/2 0
mys-in/37/1/1/0/40 ffda25
mys-in/31/0/1/0/44 24.0
mys-in/31/0/1/0/21 Off
mys-in/31/0/1/0/22 Auto
mys-in/31/1/1/0/2 0
mys-in/31/1/1/0/3 20
mys-in/31/1/1/0/40 9f1400

The persistence file is disconnected from the communication. It will store the state of all the nodes and children including values. So looking at the retained messages from the broker doesn’t tell you anything about the persistence file.

You can configure the path to the persistence file in your mysensors home assistant config section. If you have configured it to be a json file, we can look at the contents of the JSON file. If it’s a pickle file, we can’t.

You opened my eyes. I was thinking it’s a discovered devices file. But indeed it’s persistance…

{"0": {"type": 18, "sketch_name": null, "sketch_version": null, "protocol_version": "2.2.0-beta", "_battery_level": 0, "children": {}, "sensor_id": 0}, "66": {"type": 17, "sketch_name": "MYS Kladovka Gidro", "sketch_version": "2.1.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"1": {"type": 3, "id": 1, "values": {}, "description": ""}, "3": {"type": 7, "id": 3, "values": {"1": "15.0"}, "description": ""}, "4": {"type": 6, "id": 4, "values": {"0": "31.0"}, "description": ""}, "5": {"type": 22, "id": 5, "values": {"37": "291.0"}, "description": ""}, "7": {"type": 32, "id": 7, "values": {}, "description": ""}}, "sensor_id": 66}, "37": {"type": 18, "sketch_name": "MYS Koridor", "sketch_version": "2.1.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"1": {"type": 26, "id": 1, "values": {"40": "ffda25", "2": "0", "3": "100"}, "description": ""}, "2": {"type": 7, "id": 2, "values": {}, "description": ""}, "3": {"type": 6, "id": 3, "values": {}, "description": ""}, "85": {"type": 21, "id": 85, "values": {}, "description": "21"}}, "sensor_id": 37}, "72": {"type": 17, "sketch_name": "MYS Kitchen Hood", "sketch_version": "2.1.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"0": {"type": 4, "id": 0, "values": {"2": "0", "3": "0"}, "description": ""}, "1": {"type": 4, "id": 1, "values": {"2": "1", "3": "100"}, "description": ""}, "2": {"type": 4, "id": 2, "values": {"2": "0", "3": "0"}, "description": ""}, "3": {"type": 4, "id": 3, "values": {"2": "0", "3": "0"}, "description": ""}, "4": {"type": 7, "id": 4, "values": {"1": "56.7"}, "description": ""}, "5": {"type": 6, "id": 5, "values": {"0": "25.3"}, "description": ""}, "7": {"type": 0, "id": 7, "values": {"16": "0"}, "description": ""}, "8": {"type": 0, "id": 8, "values": {"16": "0"}, "description": ""}, "9": {"type": 0, "id": 9, "values": {"16": "1"}, "description": ""}, "10": {"type": 0, "id": 10, "values": {"16": "0"}, "description": ""}, "11": {"type": 22, "id": 11, "values": {"37": "125.0"}, "description": ""}, "12": {"type": 22, "id": 12, "values": {"37": "565.0"}, "description": ""}}, "sensor_id": 72}, "73": {"type": null, "sketch_name": null, "sketch_version": null, "protocol_version": null, "_battery_level": 0, "children": {}, "sensor_id": 73}, "53": {"type": 17, "sketch_name": "BALKON SOIL", "sketch_version": "2.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"0": {"type": 35, "id": 0, "values": {"16": "1", "37": "34.0"}, "description": ""}}, "sensor_id": 53}, "41": {"type": 17, "sketch_name": "MYS Zal", "sketch_version": "2.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"0": {"type": 29, "id": 0, "values": {"0": "23.8", "44": "22", "21": "CoolOn", "22": "Auto"}, "description": ""}, "2": {"type": 7, "id": 2, "values": {"1": "55.0"}, "description": ""}, "3": {"type": 6, "id": 3, "values": {"0": "23.8"}, "description": ""}, "4": {"type": 22, "id": 4, "values": {"45": "87.0", "101": "91.0", "37": "90.0"}, "description": ""}, "5": {"type": 24, "id": 5, "values": {"45": "163.847656", "101": "178.89", "37": "198.22"}, "description": ""}}, "sensor_id": 41}, "56": {"type": 17, "sketch_name": "Vent Klapans", "sketch_version": "2.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"1": {"type": 3, "id": 1, "values": {}, "description": ""}, "2": {"type": 3, "id": 2, "values": {}, "description": ""}, "3": {"type": 7, "id": 3, "values": {"1": "24.0"}, "description": ""}, "4": {"type": 6, "id": 4, "values": {"0": "26.0"}, "description": ""}, "7": {"type": 3, "id": 7, "values": {}, "description": ""}, "8": {"type": 0, "id": 8, "values": {"16": "0"}, "description": ""}}, "sensor_id": 56}, "31": {"type": 17, "sketch_name": "Bedroom", "sketch_version": "2.1", "protocol_version": "2.1.1", "_battery_level": 0, "children": {"0": {"type": 29, "id": 0, "values": {"0": "24.7", "44": "24", "21": "Off", "22": "Auto"}, "description": ""}, "1": {"type": 26, "id": 1, "values": {"40": "9f1400", "2": "0", "3": "20"}, "description": ""}, "2": {"type": 7, "id": 2, "values": {"1": "70.0"}, "description": ""}, "3": {"type": 6, "id": 3, "values": {"0": "24.7"}, "description": ""}, "4": {"type": 22, "id": 4, "values": {"37": "98.0"}, "description": ""}}, "sensor_id": 31}}

Looks like node 41 child 5 has the bad value type 101 with value 178.89. Remove that key: value pair from the JSON, save and restart home assistant.

Edit: Child 4 on node 41 also has the value type 101. Remove that pair as well.

1 Like