diff --git a/fhem/FHEM/59_LuftdatenInfo.pm b/fhem/FHEM/59_LuftdatenInfo.pm index 63858da63..f10c087e8 100644 --- a/fhem/FHEM/59_LuftdatenInfo.pm +++ b/fhem/FHEM/59_LuftdatenInfo.pm @@ -327,7 +327,7 @@ sub LuftdatenInfo_ParseHttpResponse($) { LuftdatenInfo_GetHttpResponse($hash, $SENSORID2) if(defined($SENSORID2)); } - elsif($sensor_type eq "DHT22"){ + elsif($sensor_type ne "SDS011"){ Log3 $SELF, 5, "$TYPE ($SELF) - parsing $sensor_type data"; if( $sensor->{location}{latitude} ne @@ -339,7 +339,8 @@ sub LuftdatenInfo_ParseHttpResponse($) { Log3( $SELF, 2 - , "$TYPE ($SELF) - DHT22 position differs from SDS011 position" + , "$TYPE ($SELF) - " + . "$sensor_type position differs from SDS011 position" ); return; @@ -357,6 +358,9 @@ sub LuftdatenInfo_ParseHttpResponse($) { elsif($_->{value_type} eq "humidity"){ readingsBulkUpdate($hash, "humidity", $1); } + elsif($_->{value_type} eq "pressure"){ + readingsBulkUpdate($hash, "pressure", $1); + } } readingsBulkUpdate($hash, "state", "active"); @@ -376,6 +380,9 @@ sub LuftdatenInfo_ParseHttpResponse($) { elsif($_->{value_type} eq "humidity"){ readingsBulkUpdate($hash, "humidity", $1); } + elsif($_->{value_type} eq "pressure"){ + readingsBulkUpdate($hash, "pressure", $1); + } elsif($_->{value_type} eq "SDS_P1"){ readingsBulkUpdate($hash, "PM10", $1); } @@ -456,7 +463,9 @@ sub LuftdatenInfo_statusRequest($) {
define <name> LuftdatenInfo
- (<SDS011sensorID> [<DHT22sensorID>]|<ip>)
+ (<SDS011sensorID>
+ [<DHT22sensorID>|<BME280sensorID>]
+ |<ip>)
humiditypressurelatitude
define <name> LuftdatenInfo
- (<SDS011sensorID> [<DHT22sensorID>]|<ip>)
+ (<SDS011sensorID>
+ [<DHT22sensorID>|<BME280sensorID>]
+ |<ip>)
humiditypressurelatitude