NorthernMan54 / homebridge-dht

Homebridge plugin for DHT22 Temperature / Humidity Sensors
72 stars 14 forks source link

DH11 showing humidity value of NaN #11

Closed timothy-gibson closed 6 years ago

timothy-gibson commented 6 years ago

I installed this plugin and the temperature of my DH11 sensor works fine but I have not yet been able to get the humidity to show through to homekit.

Homekit status:

Sep 23 04:16:33 mediapi homebridge[5619]: [Sat Sep 23 2017 04:16:33 GMT+0000 (UTC)] [dht22] Got status of 0
Sep 23 04:16:33 mediapi homebridge[5619]: [Sat Sep 23 2017 04:16:33 GMT+0000 (UTC)] [dht22] Got Temperature of 26
Sep 23 04:16:33 mediapi homebridge[5619]: [Sat Sep 23 2017 04:16:33 GMT+0000 (UTC)] [dht22] Got humidity of NaN

And if I run the dhtxx binary I get:

~ $ dht22
0 26.0 52.0

Which shows a humidity of 52%. Any idea why I'm not getting this data flowing through to the plugin?

NorthernMan54 commented 6 years ago

I had patched the dhtxx program as part of the installation, and it appears that this was bypassed. Trying patching the dhtxx program. After patching it should work. Patching detail are included in the instructions.

Sent from my iPad

On Sep 23, 2017, at 12:20 AM, timothy-gibson notifications@github.com wrote:

I installed this plugin and the temperature of my DH11 sensor works fine but I have not yet been able to get the humidity to show through to homekit.

Homekit status:

Sep 23 04:16:33 mediapi homebridge[5619]: [Sat Sep 23 2017 04:16:33 GMT+0000 (UTC)] [dht22] Got status of 0 Sep 23 04:16:33 mediapi homebridge[5619]: [Sat Sep 23 2017 04:16:33 GMT+0000 (UTC)] [dht22] Got Temperature of 26 Sep 23 04:16:33 mediapi homebridge[5619]: [Sat Sep 23 2017 04:16:33 GMT+0000 (UTC)] [dht22] Got humidity of NaN And if I run the dhtxx binary I get:

~ $ dht22 0 26.0 52.0 Which shows a humidity of 52%. Any idea why I'm not getting this data flowing through to the plugin?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

timothy-gibson commented 6 years ago

My apologies, it appears I must have missed the patching instructions. Working perfectly now, cheers.