HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: Schnegg on February 24, 2014, 07:20:24 PM

Title: Wrong temperature reading with Vision Security ZP 3102
Post 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

Title: Re: Wrong temperature reading with Vision Security ZP 3102
Post by: Schnegg on March 01, 2014, 01:17:17 PM
I'll try to change the code of the temperature calculation. Where's this code ?

Thank you for your help.

Regards
Alexandre Schnegg
Title: Re: Wrong temperature reading with Vision Security ZP 3102
Post by: Gene on March 01, 2014, 05:51:55 PM
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.
Title: Re: Wrong temperature reading with Vision Security ZP 3102
Post by: da_zalama on August 25, 2014, 12:42:43 PM
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 ?
Title: Re: Wrong temperature reading with Vision Security ZP 3102
Post by: Schnegg on August 25, 2014, 05:33:36 PM
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