Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHT Sensor not working with HASSIO #178

Closed
matthinc opened this issue Sep 2, 2017 · 19 comments
Closed

DHT Sensor not working with HASSIO #178

matthinc opened this issue Sep 2, 2017 · 19 comments

Comments

@matthinc
Copy link

matthinc commented Sep 2, 2017

As described here https://community.home-assistant.io/t/dht-sensor-issue-at-startup-after-fresh-installation/24914 the DHT sensor module (https://home-assistant.io/components/sensor.dht/) Is not working correctly with the new version of HASSIO.

It works just fine with HomeAssistant (and without HASSIO).

@tungmeister
Copy link

I've been having the same issue with the past few versions of Hassio. I've posted a issue here #9177 with a work around that you can use for now. There doesn't seem to be any mention of a fix in the 53 release notes, hopefully it'll get sorted soon!

@gollo
Copy link

gollo commented Sep 9, 2017

This took some digging, but by default the DHT package isn't installed at install time because it fails on some (non-pi) systems. So it's been relying on installing at runtime when the component is configured. This has probably been working ok on RPi's with hass until now because the required packages (mentioned above) were available. However, the hass docker image for hassio does not have theses packages available to do the dynamic installation. It seems to me we need to manually add this install into the raspberrypi docker files? Can you comment @pvizeli? I assuming this is only required on RPi installs, does anyone know any different?

@pvizeli
Copy link
Member

pvizeli commented Sep 11, 2017

What is the packages that will be needed?

@gollo
Copy link

gollo commented Sep 11, 2017

This - https://github.com/adafruit/Adafruit_Python_DHT/archive/da8cddf7fb629c1ef4f046ca44f42523c9cf2d11.zip#Adafruit_DHT==1.3.2

You can see it referenced in the sensors/dht.py file. I already have some Docker code that will install it. If you agree that the machine specific files are the place for it, I will raise a PR...

@pvizeli
Copy link
Member

pvizeli commented Sep 11, 2017

@sfarzie
Copy link

sfarzie commented Sep 11, 2017

Can anyone explain me the right steps I've got to do in order to make dht22 to work again?
I've updated to 0.53 and it is still not working

@pvizeli
Copy link
Member

pvizeli commented Sep 12, 2017

You need make a layer inside machine dockerfiles that setup the dev env and install this with pip and remove the dev env

@sfarzie
Copy link

sfarzie commented Sep 12, 2017

Sorry I don't know how docker works, do you have a link that helps me to understand what to do?

@sfarzie
Copy link

sfarzie commented Sep 19, 2017

I've seen you're working on it:
home-assistant/hassio-build#29

When are you going to deploy the fix?
Thanks!!!

@pvizeli
Copy link
Member

pvizeli commented Sep 19, 2017

Next home-assistant release -> 0.54

@bramschats
Copy link

On release 0.62.1 at this moment and it is still not working using this setup:

sensor:
  - platform: dht
    sensor: DHT11
    pin: 4
    monitored_conditions:
      - temperature
      - humidity

Is it possible to get this working within Hassio?

@Poratnir
Copy link

Any solution for this to work?

@GhostViper396
Copy link

any luck?

@Poratnir
Copy link

any solution for this?

@TracKer
Copy link

TracKer commented Oct 16, 2018

Related issues: home-assistant/core#15847
But no solution there. The problem is in Adafruit module's platform detection, it thinks that it's running not on Raspberry Pi.
Here is a comment with detailed explanation: home-assistant/core#15847 (comment)

@bastian987
Copy link

Also interested in a fix.

@TracKer
Copy link

TracKer commented Oct 23, 2018

Seems like this is only the issue of 64 bit version of hassos. I switched to 32 bit version and problem does not exist there.

@ornolio
Copy link

ornolio commented Jan 30, 2019

I also need it. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests