more G-Labs products

Author Topic: Wrong temperature reading with Vision Security ZP 3102  (Read 1899 times)

February 24, 2014, 07:20:24 PM
Read 1899 times

Schnegg

  • *
  • Information
  • Newbie
  • Posts: 7
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


March 01, 2014, 01:17:17 PM
Reply #1

Schnegg

  • *
  • Information
  • Newbie
  • Posts: 7
I'll try to change the code of the temperature calculation. Where's this code ?

Thank you for your help.

Regards
Alexandre Schnegg

March 01, 2014, 05:51:55 PM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.
« Last Edit: March 01, 2014, 06:00:29 PM by Gene »

August 25, 2014, 12:42:43 PM
Reply #3

da_zalama

  • *
  • Information
  • Newbie
  • Posts: 2
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 ?

August 25, 2014, 05:33:36 PM
Reply #4

Schnegg

  • *
  • Information
  • Newbie
  • Posts: 7
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