platypush.backend.sensor.dht

class platypush.backend.sensor.dht.SensorDhtBackend(temperature: bool = True, humidity: bool = True, **kwargs)[source]

Backend to poll a DHT11/DHT22/AM2302 temperature/humidity sensor.

Requires:

  • Adafruit_Python_DHT (pip install git+https://github.com/adafruit/Adafruit_Python_DHT.git)

  • The gpio.sensor.dht plugin configured and enabled.

__init__(temperature: bool = True, humidity: bool = True, **kwargs)[source]
Parameters
  • temperature – Enable temperature sensor poll.

  • humidity – Enable humidity sensor poll.