From a2882734b6adafb423b2d1df24870dbab069dee2 Mon Sep 17 00:00:00 2001 From: lichtteil Date: Wed, 15 Apr 2020 23:51:39 +0200 Subject: [PATCH 1/3] Add temperature and humidity of HTU21D sensor --- custom_components/local_luftdaten/sensor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' From c6e0967d010e51d1aa69159ab36a0be20b4a6bfb Mon Sep 17 00:00:00 2001 From: lichtteil Date: Thu, 16 Apr 2020 00:00:44 +0200 Subject: [PATCH 2/3] Add HTU21D to list of sensors --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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. From 15444cb34b3f61e7b4b5a6ef5ee368397170a241 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 23 Apr 2020 16:52:37 +0200 Subject: [PATCH 3/3] add BMP and BMP280 sensor values --- README.md | 4 ++++ custom_components/local_luftdaten/sensor.py | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bf94ac..b0b8b43 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,10 @@ At the moment following sensor data can be read: - BME280_temperature - BME280_humidity - BME280_pressure +- BMP_pressure +- BMP_temperature +- BMP280_pressure +- BMP280_temperature - HTU21D_temperature - HTU21D_humidity diff --git a/custom_components/local_luftdaten/sensor.py b/custom_components/local_luftdaten/sensor.py index 1da65e4..3e14cbd 100644 --- a/custom_components/local_luftdaten/sensor.py +++ b/custom_components/local_luftdaten/sensor.py @@ -34,6 +34,10 @@ SENSOR_BME280_TEMPERATURE = 'BME280_temperature' SENSOR_BME280_HUMIDITY = 'BME280_humidity' SENSOR_BME280_PRESSURE = 'BME280_pressure' +SENSOR_BMP_TEMPERATURE = 'BMP_temperature' +SENSOR_BMP_PRESSURE = 'BMP_pressure' +SENSOR_BMP280_TEMPERATURE = 'BMP280_temperature' +SENSOR_BMP280_PRESSURE = 'BMP280_pressure' SENSOR_PM1 = 'SDS_P1' SENSOR_PM2 = 'SDS_P2' SENSOR_WIFI_SIGNAL = 'signal' @@ -46,10 +50,14 @@ SENSOR_BME280_TEMPERATURE: ['Temperature', TEMP_CELSIUS], SENSOR_BME280_HUMIDITY: ['Humidity', '%'], SENSOR_BME280_PRESSURE: ['Pressure', 'mb'], + SENSOR_BMP_TEMPERATURE: ['Temperature', TEMP_CELSIUS], + SENSOR_BMP_PRESSURE: ['Pressure', 'mb'], + SENSOR_BMP280_TEMPERATURE: ['Temperature', TEMP_CELSIUS], + SENSOR_BMP280_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_HTU21D_TEMPERATURE: ['Temperature', TEMP_CELSIUS], + SENSOR_HTU21D_TEMPERATURE: ['Temperature', TEMP_CELSIUS], SENSOR_HTU21D_HUMIDITY: ['Humidity', '%'] }