NorthernMan54 / homebridge-dht

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

Support for dht11 #17

Closed sincetomorrow closed 6 years ago

sincetomorrow commented 6 years ago

Hello and nice work!! One question, does it support dht11? I have tried to replay at the service dht11 instead of dht22 but had no luck.

Thank you

NorthernMan54 commented 6 years ago

Panos,

It should but I have don’t have one to test, so it may be a little bit of trial and error.

The core of the plugin is the dht22 binary, that gets run every time the plugin wants temperature. If you run the dht22 command does it return temp and humidity on the command line?

If yes, the don’t change anything from the plugin config.

Sent from my iPad

On Mar 16, 2018, at 6:21 AM, Panos B notifications@github.com wrote:

Hello and nice work!! One question, does it support dht11? I have tried to replay at the service dht11 instead of dht22 but had no luck.

Thank you

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

Namelessinterester commented 6 years ago

It works fine with my DHT11, but "service": "dht22", so I just removed it from my config.

LeoCal commented 6 years ago

Great job @NorthernMan54 !

NorDroN commented 6 years ago

@Namelessinterester, could you give a part of your config for dht11?

NorthernMan54 commented 6 years ago

The config for DHT11 and DHT22 is the same, just follow the directions for the dht22, and don’t change anything. It should just work.

On Jun 14, 2018, at 3:55 PM, Andrey Klimov notifications@github.com wrote:

@Namelessinterester https://github.com/Namelessinterester, could you give a part of your config for dht11?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NorthernMan54/homebridge-dht/issues/17#issuecomment-397418957, or mute the thread https://github.com/notifications/unsubscribe-auth/AS5CmBfU200xDw7dnnv0pKkzjIoeznCtks5t8r_OgaJpZM4StjTJ.

NorDroN commented 6 years ago

@NorthernMan54 unfortunately it does't work, I see 0°C and 0% :(

NorthernMan54 commented 6 years ago

And if you run the dht22 command from the command line do you see the same?

Sent from my iPad

On Jun 15, 2018, at 5:01 AM, Andrey Klimov notifications@github.com wrote:

@NorthernMan54 unfortunately it does't work, I see 0°C and 0% :(

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