HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: Schnegg on February 24, 2014, 07:20:24 PM
-
Hello,
I have three Vision Security ZP 3102 (http://www.visionsecurity.com.tw/ha_products_page2_154_161.html) it's a PIR sensor with temperature measurement.
For my three sensors, HG indicates me a temperature around -2.5°C.
The manual doesn't provide any specs for the temperature output so I think it's "standard". But I don't know if there is a standard zwave specification for temperature output.
Can anyone help me ?
Regards
Alexandre Schnegg
-
I'll try to change the code of the temperature calculation. Where's this code ?
Thank you for your help.
Regards
Alexandre Schnegg
-
Fork the code from github repository https://github.com/genielabs/HomeGenie.
Add a new product handler here:
https://github.com/genielabs/HomeGenie/tree/master/MIG/Support%20Libraries/ZWaveLib/Devices/ProductHandlers
make your class extends the Generic/Sensor.cs class as it happen for example with Aeon/DoorWindowSensor.cs.
Override the HandleMultiInstanceReport. See the base class method to understand how it's currently working:
https://github.com/genielabs/HomeGenie/blob/master/MIG/Support%20Libraries/ZWaveLib/Devices/ProductHandlers/Generic/Sensor.cs#L107
at line #170 you'll find the temperature reading.
When you get your code working submit it and then make a pull request.
Cheers,
g.
-
Hi
i got the same problem ..
its a bit shame because the sensor PIR part works fine .. only cosmetic fault is that the temperature shows wrong... any hope for the new device Handler ?
-
Hello,
The datasheet isn't very clear about the temperature measurement (range and value sent) so it's a bit tricky to do the new handler.
Regards
Alexandre Schnegg