In the method "Parse" (see code below), the value is extracted once in the beginning by "Utility.ExtractValueFromBytes" and a second time by "ExtractTemperatureFromBytes".
The code of "ExtractTemperatureFromBytes" doesn't work because it takes a subset of the message and doesn't read the value at the correct index.
If I comment the call to "ExtractTemperatureFromBytes" the temperature reading is correct.
Does the method "ExtractTemperatureFromBytes" work ?
If this is done on purpose, I will write a specific device handler for the sensor.
Hello,
Following my post on the forum (http://www.homegenie.it/forum/index.php?topic=66.new;topicseen#new), I have found the cause of the wrong temperature reading.
In the method "Parse" (see code below), the value is extracted once in the beginning by "Utility.ExtractValueFromBytes" and a second time by "ExtractTemperatureFromBytes".
The code of "ExtractTemperatureFromBytes" doesn't work because it takes a subset of the message and doesn't read the value at the correct index.
If I comment the call to "ExtractTemperatureFromBytes" the temperature reading is correct.
Does the method "ExtractTemperatureFromBytes" work ?
If this is done on purpose, I will write a specific device handler for the sensor.
Regards Alexandre Schnegg
From "SensorValue.cs":