Support for TEMPerHumiV1.0
bogdemon opened this issue · 1 comments
Hi,
Recently successfully enabled a system using an older sensor.
idVendor 0x0c45 Microdia
idProduct 0x7402 TEMPerHUM Temperature & Humidity Sensor
iManufacturer 1 RDing
iProduct 2 TEMPerHumiV1.0
To make it work, the following update is required to: device_library.py
"TEMPerHumiV1.0": TemperConfig( temp_sens_offsets=[2], hum_sens_offsets=[4], type=TemperType.FM75, ),
Output of the temper-poll command
pi@raspberrypi:~ $ temper-poll -v
DEBUG:temperusb.temper:Found device | Bus:1 Ports:5 SensorCount:1
INFO:temperusb.temper:Found 1 TEMPer devices
Found 1 devices
DEBUG:temperusb.temper:Ctrl transfer: b'\x01\x803\x01\x00\x00\x00\x00'
DEBUG:temperusb.temper:Read data: '80 04 19 3a 03 e6 0d 14'
DEBUG:temperusb.temper:Ctrl transfer: b'\x01\x803\x01\x00\x00\x00\x00'
DEBUG:temperusb.temper:Read data: '80 04 19 3a 03 e6 0d 14'
DEBUG:temperusb.temper:ID='TEMPerHumiV1.0'
DEBUG:temperusb.temper:T=22.72656C
DEBUG:temperusb.temper:Ctrl transfer: b'\x01\x803\x01\x00\x00\x00\x00'
DEBUG:temperusb.temper:Read data: '80 04 19 3a 03 e6 0d 14'
DEBUG:temperusb.temper:Ctrl transfer: b'\x01\x803\x01\x00\x00\x00\x00'
DEBUG:temperusb.temper:Read data: '80 04 19 3a 03 e6 0d 14'
DEBUG:temperusb.temper:ID='TEMPerHumiV1.0'
DEBUG:temperusb.temper:RH=31.93600%
Device #0: 22.7°C 72.9°F 31.9%RH
Please update the device_library.py accordingly.