Raspberry PI Docker image and GPIO

Hi

Now that I have moved to the Docker world, I have set up my PI 3 to be a docker engine and deployed Home Assistant that seems to work very well, thanks, guys!!!

when access the raspberry pi 3 gpio’s from the official docker image with the privileged flag the Binary sensors work fine, but when trying to setup the DHT11 / 22 I am not getting any updates.

binary_sensor:

  • platform: rpi_gpio
    ports:
    17: PIR Kitchen
    18: Kitchen door
    27: Front door
    24: PIR Hallway

sensor:

  • platform: dht
    sensor: DHT11
    name: Test temp
    pin: 25
    temperature_offset: 2.1
    humidity_offset: -3.2
    monitored_conditions:
    • temperature
    • humidity

Looking in the logs i am seeing the following warning
level=WARNING, message=Updating dht sensor took longer than the scheduled update interval 0:00:30, exception=, source=helpers/entity_platform.py>e[0m

Any help would be great thanks :slight_smile:

OK I have fixed it… forgot to mention I had added one of the following, https://www.amazon.co.uk/Custard-Ready-Built-Breakout-Protection-Raspberry/dp/B00DM76K8Y/ref=lp_9769558031_1_2?srs=9769558031&ie=UTF8&qid=1523387825&sr=8-2 from what I understand it has an inline 220 resistor. once I removed this all worked fine via the GPIO and Docker :slight_smile: