Wrong S_DOOR and V_TRIPPED gives a invalid value, in the log file WHY ?
-
I see something strange in my homeassistant log file. What might be the issue here ?
Everything does seem to work ok I do get a nice door that open and close fine2019-01-04 10:21:42 DEBUG (MainThread) [homeassistant.components.mysensors.helpers] Invalid values: {16: '1'}: switch platform: node 10 child 20: S_DOOR requires value_type V_ARMED @ data[15]
2019-01-04 10:21:42 DEBUG (MainThread) [homeassistant.components.mysensors.helpers] Invalid values: {16: '1'}: switch platform: node 10 child 21: S_DOOR requires value_type V_ARMED @ data[15]According to the spec, S_DOOR should have V_ARMED or V_TRIPPED
I do send the following from the node.
sensorgateway1-out/10/21/1/0/16 1
sensorgateway1-out/10/20/1/0/16 1And 16 = V_TRIPPED
and this is how the json file for sensor node 10 looks like
"10": {
"sensor_id": 10,
"children": {
"20": {
"id": 20,
"type": 0,
"description": "",
"values": {
"16": "1"
}
},
"21": {
"id": 21,
"type": 0,
"description": "",
"values": {
"16": "1"
}
}
},
"type": 17,
"sketch_name": "Door living room",
"sketch_version": "1.0",
"battery_level": 0,
"protocol_version": "2.3.1-alpha",
"heartbeat": 0
}
-
@mcrahr said in Wrong S_DOOR and V_TRIPPED gives a invalid value, in the log file WHY ?:
S_DOOR requires value_type V_ARMED
Seems like a HomeAssistant issue to me. It only accepts V_ARMED for sensor type S_DOOR, while for MySensors V_TRIPPED is also allowed.
-
@yveaux
As you can see the LOG comes from homeassistant.components.mysensors.helpers, not sure who did that, but home assistant work fine, as it does shows everything, looks like it is only the error trace
-
@mcrahr said in Wrong S_DOOR and V_TRIPPED gives a invalid value, in the log file WHY ?:
not sure who did that
Definately HomeAssistant code: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mysensors/helpers.py#L52 and https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mysensors/const.py#L50
-
Any news on this one?