diff --git a/README.md b/README.md index 4b1fac1..1bf94ac 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ At the moment following sensor data can be read: - BME280_temperature - BME280_humidity - BME280_pressure +- HTU21D_temperature +- HTU21D_humidity Sensor type `signal` gives the wifi signal strength of the sensor device. diff --git a/custom_components/local_luftdaten/sensor.py b/custom_components/local_luftdaten/sensor.py index b0f7994..1da65e4 100644 --- a/custom_components/local_luftdaten/sensor.py +++ b/custom_components/local_luftdaten/sensor.py @@ -37,6 +37,8 @@ SENSOR_PM1 = 'SDS_P1' SENSOR_PM2 = 'SDS_P2' SENSOR_WIFI_SIGNAL = 'signal' +SENSOR_HTU21D_TEMPERATURE = 'HTU21D_temperature' +SENSOR_HTU21D_HUMIDITY = 'HTU21D_humidity' SENSOR_TYPES = { SENSOR_TEMPERATURE: ['Temperature', TEMP_CELSIUS], @@ -46,7 +48,9 @@ SENSOR_BME280_PRESSURE: ['Pressure', 'mb'], SENSOR_PM1: ['PM10', VOLUME_MICROGRAMS_PER_CUBIC_METER], SENSOR_PM2: ['PM2.5', VOLUME_MICROGRAMS_PER_CUBIC_METER], - SENSOR_WIFI_SIGNAL: ['Wifi signal', 'dBm'] + SENSOR_WIFI_SIGNAL: ['Wifi signal', 'dBm'], + SENSOR_HTU21D_TEMPERATURE: ['Temperature', TEMP_CELSIUS], + SENSOR_HTU21D_HUMIDITY: ['Humidity', '%'] } DEFAULT_NAME = 'Luftdaten Sensor'