Feinstaubsensor - alternative Firmware (luftdaten.info)

Begonnen von JoWiemann, 03 Juli 2017, 16:09:14

Vorheriges Thema - Nächstes Thema

Astrofreak85

ah danke @otto123 überlesen!

Hab noch ein Problem,

immer wieder gehen wohl Werte verloren, dachte erst das liegt an einem defekten Sensor, ist danch zwar besser geworden, kommt aber immer wieder...

Was kann man dagegen tun?


PeMue

Zitat von: Astrofreak85 am 25 März 2019, 19:07:22
immer wieder gehen wohl Werte verloren, dachte erst das liegt an einem defekten Sensor, ist danch zwar besser geworden, kommt aber immer wieder ...
Mir scheint, Du hast ein Problem mit dem Luftfeuchtesensor, welchen hast Du im Einsatz?
Bei mir ist da deutlich weniger Gezappel.

Gruß PeMue
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

Astrofreak85

DHT22

frisch getauscht, der der vorher drin war hat immer um die 90% angezeigt

rettie


Frosch

Hallo zusammen,

Ich habe die Firmware NRZ-2018-111-AF-070 (Mar 24 2019) auf meinen ESP8266 aufgespielt. Es sind ein Feinstaubsensor und zwei DHT22 angeschlossen. Beide DHT22 Sensoren werden als an Pin 7 angeschlossen angezeigt. Einer ist aber an Pin 8 angeschlossen. Kann ich den Pin über die Weboberfläche ändern?

jnewton957

Hallo,

ich habe erst jetzt gesehen, dass das Modul 59_LuftdatenInfo.pm  nun auch AirQuality auslesen kann.

Und wie der Zufall es will, habe ich in der Nähe eine Station , die auch AQI US mit angibt.
Station 15635

wie binde ich das nun als Attribut ein.
Insbesondere auch, da der Wert aktuell mit 12 = gut angegeben wird, was aber gem. dem Modul (und auch Wikipedia) sehr hoch/sehr schlecht wäre.

aktuell habe ich
define Feinstaub_Huerth LuftdatenInfo remote 15635 15636
setuuid Feinstaub_Huerth 5d0606d7-f33f-524a-ea30-45ca4b03b6828cb9
attr Feinstaub_Huerth userattr reading01Name reading01Regex reading02Name reading02Regex reading03Name reading03Regex reading04Name reading04Regex reading05Name reading05Regex requestHeader stateFormat
attr Feinstaub_Huerth reading01Name temperature
attr Feinstaub_Huerth reading01Regex "temperature","value":"(0|\d*\.\d+)"}.*
attr Feinstaub_Huerth reading02Name humidity
attr Feinstaub_Huerth reading02Regex "humidity","value":"(0|\d*\.\d+)"}.*
attr Feinstaub_Huerth reading03Name BMP_temperature
attr Feinstaub_Huerth reading03Regex "BMP_temperature","value":"(0|\d*\.\d+)"}.*
attr Feinstaub_Huerth reading04Name BMP_abs_pressure
attr Feinstaub_Huerth reading04Regex "BMP_pressure","value":"(0|\d*+)"}.*
attr Feinstaub_Huerth reading05Name software_version
attr Feinstaub_Huerth reading05Regex "software_version": "(.*?)".*
attr Feinstaub_Huerth room Feinstaub

Wie bekomme ich also den AQI US Wert von https://deutschland.maps.luftdaten.info/#14/50.8185/6.9725 noch rein?

Danke
Jörg
FHEM6.2 auf Pi5
V 1.66 nanoCUL 433 (IT)
V 1.66 nanoCUL868 (HM)
sqlite3 LogDb
ELRO AB440, DECT200,  TFA30.3125, esp8266, HM, TabletUI, IR-Schreiblesekopf (Udo),tibber Pulse, Kostal Pico, cfos Wallbox, Modbus TCP

KölnSolar

Hi Jörg,
lange nichts gehört.

Das ist ja kein Messwert, sondern nur eine (subjektive) Betrachtung des PM2.5.
Ich denke, der wird nicht "ausgeliefert", sondern nur für die Inet-Seite berechnet.
Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Christoph Morrison

Hallo Jörg,

Zitat von: jnewton957 am 16 Juni 2019, 12:31:32
Wie bekomme ich also den AQI US Wert von https://deutschland.maps.luftdat

du machst es dir ziemlich schwer. Ich hab das mal als Devices bei mir angelegt:

define g.test.Feinstaub_Huerth LuftdatenInfo remote 15635 15636

define g.test.Feinstaub_Huerth_bme680 LuftdatenInfo slave g.weather.station.sensor.4 BME680_air_quality BME680_humidity BME680_pressure BME680_pressure_nn BME680_quality_data BME680_temperature

setstate g.test.Feinstaub_Huerth active
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:45 PM10 4.83
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:45 PM2.5 3.55
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:45 humidity 99.90
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:39 latitude 50.818
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:39 location 50389 Wesseling
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:39 longitude 6.972
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:45 state active
setstate g.test.Feinstaub_Huerth 2019-06-16 22:52:45 temperature 18.00

setstate g.test.Feinstaub_Huerth_bme680 active
setstate g.test.Feinstaub_Huerth_bme680 2019-06-16 22:55:19 airQuality 1
setstate g.test.Feinstaub_Huerth_bme680 2019-06-16 22:55:19 humidity 59.69
setstate g.test.Feinstaub_Huerth_bme680 2019-06-16 22:55:19 pressure 1013.08
setstate g.test.Feinstaub_Huerth_bme680 2019-06-16 22:55:19 pressureNN 1023.18
setstate g.test.Feinstaub_Huerth_bme680 2019-06-16 22:55:19 state active
setstate g.test.Feinstaub_Huerth_bme680 2019-06-16 22:55:19 temperature 23.17


g.test.Feinstaub_Huerth ist der Master, der alle Daten vom Sensor bezieht. Das andere Device ist ein Slave an dem Master, der nur die BME680-Daten enthält. So einen kannst du dir auch für den SDS1101 (und jeden anderen Sensor am Device) anlegen. Im Slave ist dann auch AIQ angegeben.

Morgennebel

Moin,


ich hab meinen Luftsensor endlich final aufgebaut: NodeMCU+SDS11+GPS Neo+BME680+TSL2561...

Vom Sensor selbst, auf der Seite "Aktuelle Werte" erhalte ich für alle Sensoren Daten. In FHEM fehlen jedoch die Daten des TSL-Sensors bei der Verwendung eines "lokalen" Sensors:

Das Device:


Internals:
   ADDRESS    192.168.1.51
   DEF        local 192.168.1.51
   FUUID      5d072eaf-f33f-a7fe-34a8-8c569cb754daca6c
   INTERVAL   300
   MODE       local
   NAME       AQ_LuftdatenInfo
   NR         626
   STATE      active
   TIMEOUT    5
   TYPE       LuftdatenInfo
   READINGS:
     2019-06-17 08:14:06   PM10            25.33
     2019-06-17 08:14:06   PM2.5           9.03
     2019-06-17 08:14:06   airQuality      6
     2019-06-17 08:14:06   altitude        -1000.00
     2019-06-17 08:14:06   date            17.06.2019
     2019-06-17 08:14:06   humidity        60.97
     2019-06-17 08:14:06   latitude        -200.000000
     2019-06-17 08:14:06   longitude       -200.000000
     2019-06-17 08:14:06   pressure        1022.37
     2019-06-17 08:14:06   pressureNN      1022.87
     2019-06-17 08:14:06   signal          -57
     2019-06-17 08:09:53   softwareVersion NRZ-2018-111-AF-070
     2019-06-17 08:14:06   state           active
     2019-06-17 08:14:06   temperature     21.94
     2019-06-17 08:14:06   time            8:01:15
Attributes:
   interval   300
   room       SYS_Network


Die RAW-Definition zeigt unter .sensors den TSL:


defmod AQ_LuftdatenInfo LuftdatenInfo local 192.168.1.51
attr AQ_LuftdatenInfo interval 300
attr AQ_LuftdatenInfo room SYS_Network

setstate AQ_LuftdatenInfo active
setstate AQ_LuftdatenInfo 2019-06-17 08:09:53 .sensors BME680_air_quality BME680_humidity BME680_pressure BME680_pressure_nn BME680_quality_data BME680_temperature SDS_P1 SDS_P2 SDS_date SDS_height SDS_lat SDS_lon SDS_time TSLFull TSLIR TSLVisible max_micro min_micro samples sensor_start_date sensor_start_time signal
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 PM10 25.33
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 PM2.5 9.03
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 airQuality 6
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 altitude -1000.00
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 date 17.06.2019
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 humidity 60.97
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 latitude -200.000000
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 longitude -200.000000
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 pressure 1022.37
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 pressureNN 1022.87
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 signal -57
setstate AQ_LuftdatenInfo 2019-06-17 08:09:53 softwareVersion NRZ-2018-111-AF-070
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 state active
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 temperature 21.94
setstate AQ_LuftdatenInfo 2019-06-17 08:14:06 time 8:01:15


Im Logfile tauchen diese Fehler auf:

2019.06.16 23:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 2896) line 1.
2019.06.16 23:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3054) line 1.
2019.06.16 23:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3054) line 1.
2019.06.16 23:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3054) line 1.
2019.06.17 00:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3205) line 1.
2019.06.17 00:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3205) line 1.
2019.06.17 00:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3205) line 1.
2019.06.17 00:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3363) line 1.
2019.06.17 00:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3363) line 1.
2019.06.17 00:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3363) line 1.
2019.06.17 01:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3519) line 1.
2019.06.17 01:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3519) line 1.
2019.06.17 01:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3519) line 1.
2019.06.17 01:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3677) line 1.
2019.06.17 01:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3677) line 1.
2019.06.17 01:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3677) line 1.
2019.06.17 02:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3828) line 1.
2019.06.17 02:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3828) line 1.
2019.06.17 02:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3828) line 1.
2019.06.17 02:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 3986) line 1.
2019.06.17 02:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 3986) line 1.
2019.06.17 02:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 3986) line 1.
2019.06.17 03:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 4142) line 1.
2019.06.17 03:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 4142) line 1.
2019.06.17 03:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 4142) line 1.
2019.06.17 03:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 4300) line 1.
2019.06.17 03:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 4300) line 1.
2019.06.17 03:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 4300) line 1.
2019.06.17 04:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 4451) line 1.
2019.06.17 04:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 4451) line 1.
2019.06.17 04:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 4451) line 1.
2019.06.17 04:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 4609) line 1.
2019.06.17 04:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 4609) line 1.
2019.06.17 04:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 4609) line 1.
2019.06.17 05:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 4765) line 1.
2019.06.17 05:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 4765) line 1.
2019.06.17 05:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 4765) line 1.
2019.06.17 05:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 5085) line 1.
2019.06.17 05:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 5085) line 1.
2019.06.17 05:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 5085) line 1.
2019.06.17 06:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 5148) line 1.
2019.06.17 06:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 5148) line 1.
2019.06.17 06:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 5148) line 1.
2019.06.17 06:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 5394) line 1.
2019.06.17 06:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 5394) line 1.
2019.06.17 06:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 5394) line 1.
2019.06.17 07:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 5462) line 1.
2019.06.17 07:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 5462) line 1.
2019.06.17 07:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 5462) line 1.
2019.06.17 07:45:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 5708) line 1.
2019.06.17 07:45:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 5708) line 1.
2019.06.17 07:45:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 5708) line 1.
2019.06.17 08:00:00 1: PERL WARNING: Can't exec "node": No such file or directory at (eval 5759) line 1.
2019.06.17 08:00:00 1: PERL WARNING: Use of uninitialized value $result in substitution (s///) at (eval 5759) line 1.
2019.06.17 08:00:00 1: PERL WARNING: Use of uninitialized value $result in concatenation (.) or string at (eval 5759) line 1.
2019.06.17 08:10:39 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/59_LuftdatenInfo.pm line 248.


Laut commandref ist libjson-perl erforderlich, welches installiert ist (Version 2.90-1).

Was läuft denn nun flasch?

Danke, -MN
Einziger Spender an FHEM e.V. mit Dauerauftrag seit >= 24 Monaten

FHEM: MacMini/ESXi, 2-3 FHEM Instanzen produktiv
In-Use: STELLMOTOR, VALVES, PWM-PWMR, Xiaomi, Allergy, Proplanta, UWZ, MQTT,  Homematic, Luftsensor.info, ESP8266, ESERA

Morgennebel

Die node-Aufrufe gehören nicht zu meinem Problem mit dem LuftdatenInfo - das war eine Speedport-Statusabfrage...

Trotzdem tauchen die lux-Werte des TLS2561 nicht auf...

Danke, -MN
Einziger Spender an FHEM e.V. mit Dauerauftrag seit >= 24 Monaten

FHEM: MacMini/ESXi, 2-3 FHEM Instanzen produktiv
In-Use: STELLMOTOR, VALVES, PWM-PWMR, Xiaomi, Allergy, Proplanta, UWZ, MQTT,  Homematic, Luftsensor.info, ESP8266, ESERA

Christoph Morrison

Zitat von: Morgennebel am 17 Juni 2019, 09:01:51
Trotzdem tauchen die lux-Werte des TLS2561 nicht auf...

Auch die Daten des GPS-Empfängers nicht. Leg dir doch mal ein weiteres Slave-Device mit den fehlenden Werten an, wie ich oben gezeigt habe.

Morgennebel

Zitat von: Christoph Morrison am 17 Juni 2019, 10:04:52
Auch die Daten des GPS-Empfängers nicht. Leg dir doch mal ein weiteres Slave-Device mit den fehlenden Werten an, wie ich oben gezeigt habe.

Der GPS funktioniert im Inneren nicht. Ich spiele mal mit den Slave-Definitionen, habe aber ehrlich gesagt den Sinn davon (trotz Dokulesen) nicht so verstanden...

Vielleicht hilft Try & Error...

Danke, -MN
Einziger Spender an FHEM e.V. mit Dauerauftrag seit >= 24 Monaten

FHEM: MacMini/ESXi, 2-3 FHEM Instanzen produktiv
In-Use: STELLMOTOR, VALVES, PWM-PWMR, Xiaomi, Allergy, Proplanta, UWZ, MQTT,  Homematic, Luftsensor.info, ESP8266, ESERA

Morgennebel

Also...

Hier die Definition des lokalen Masters:


defmod AQ_LuftdatenInfo LuftdatenInfo local 192.168.1.51
attr AQ_LuftdatenInfo interval 300
attr AQ_LuftdatenInfo room SYS_Network
attr AQ_LuftdatenInfo verbose 4

setstate AQ_LuftdatenInfo active
setstate AQ_LuftdatenInfo 2019-06-17 10:50:41 .sensors BME680_air_quality BME680_humidity BME680_pressure BME680_pressure_nn BME680_quality_data BME680_temperature SDS_P1 SDS_P2 SDS_date SDS_height SDS_lat SDS_lon SDS_time TSLFull TSLIR TSLVisible max_micro min_micro samples sensor_start_date sensor_start_time signal
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 PM10 15.75
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 PM2.5 4.70
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 airQuality 6
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 altitude -1000.00
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 date 17.06.2019
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 humidity 59.39
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 latitude -200.000000
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 longitude -200.000000
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 pressure 1022.45
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 pressureNN 1022.95
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 signal -53
setstate AQ_LuftdatenInfo 2019-06-17 10:50:41 softwareVersion NRZ-2018-111-AF-070
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 state active
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 temperature 22.83
setstate AQ_LuftdatenInfo 2019-06-17 11:06:11 time 10:45:41


Dieser hat die BME680-Daten und GPS.

Hier das Slave fuer TSL

defmod AQ_LuftdatenInfo_TSL LuftdatenInfo slave AQ_LuftdatenInfo TSLFull TSLIR  TSLVisible
attr AQ_LuftdatenInfo_TSL room SYS_Network
attr AQ_LuftdatenInfo_TSL verbose 4

setstate AQ_LuftdatenInfo_TSL active
setstate AQ_LuftdatenInfo_TSL 2019-06-17 11:06:11 state active


Keine Werte fuer Licht...

Und im Logfile bei verbose 4:


2019.06.17 10:56:11 4: LuftdatenInfo (AQ_LuftdatenInfo) - returned data: {"software_version": "NRZ-2018-111-AF-070", "age":"33", "sensordatavalues":[{"value_type":"SDS_P1","value":"8.70"},{"value_type":"SDS_P2","value":"4.63"},{"value_type":"SDS_lat","value":"-200.000000"},{"value_type":"SDS_lon","value":"-200.000000"},{"value_type":"SDS_height","value":"-1000.00"},{"value_type":"SDS_date","value":"00/00/2000"},{"value_type":"SDS_time","value":"00:00:00.00"},{"value_type":"BME680_temperature","value":"22.69"},{"value_type":"BME680_humidity","value":"59.59"},{"value_type":"BME680_pressure","value":"102245.00"},{"value_type":"BME680_pressure_nn","value":"102295.00"},{"value_type":"BME680_air_quality","value":"6"},{"value_type":"BME680_quality_data","value":"6|130|0.17|0.13|30.24"},{"value_type":"TSLIR","value":"204.00"},{"value_type":"TSLFull","value":"263.00"},{"value_type":"TSLVisible","value":"0.00"},{"value_type":"samples","value":"225491"},{"value_type":"min_micro","value":"400"},{"value_type":"max_micro","value":"373435"},{"value_type":"sensor_start_date","value":"17.06.2019"},{"value_type":"sensor_start_time","value":"10:45:41"},{"value_type":"signal","value":"-52"}]}
2019.06.17 11:01:11 4: LuftdatenInfo (AQ_LuftdatenInfo) - returned data: {"software_version": "NRZ-2018-111-AF-070", "age":"34", "sensordatavalues":[{"value_type":"SDS_P1","value":"11.70"},{"value_type":"SDS_P2","value":"4.80"},{"value_type":"SDS_lat","value":"-200.000000"},{"value_type":"SDS_lon","value":"-200.000000"},{"value_type":"SDS_height","value":"-1000.00"},{"value_type":"SDS_date","value":"00/00/2000"},{"value_type":"SDS_time","value":"00:00:00.00"},{"value_type":"BME680_temperature","value":"22.77"},{"value_type":"BME680_humidity","value":"59.40"},{"value_type":"BME680_pressure","value":"102245.00"},{"value_type":"BME680_pressure_nn","value":"102295.00"},{"value_type":"BME680_air_quality","value":"6"},{"value_type":"BME680_quality_data","value":"6|130|0.17|0.13|30.31"},{"value_type":"TSLIR","value":"204.00"},{"value_type":"TSLFull","value":"263.00"},{"value_type":"TSLVisible","value":"0.00"},{"value_type":"samples","value":"229730"},{"value_type":"min_micro","value":"391"},{"value_type":"max_micro","value":"373358"},{"value_type":"sensor_start_date","value":"17.06.2019"},{"value_type":"sensor_start_time","value":"10:45:41"},{"value_type":"signal","value":"-53"}]}
2019.06.17 11:06:11 4: LuftdatenInfo (AQ_LuftdatenInfo) - returned data: {"software_version": "NRZ-2018-111-AF-070", "age":"36", "sensordatavalues":[{"value_type":"SDS_P1","value":"15.75"},{"value_type":"SDS_P2","value":"4.70"},{"value_type":"SDS_lat","value":"-200.000000"},{"value_type":"SDS_lon","value":"-200.000000"},{"value_type":"SDS_height","value":"-1000.00"},{"value_type":"SDS_date","value":"00/00/2000"},{"value_type":"SDS_time","value":"00:00:99.99"},{"value_type":"BME680_temperature","value":"22.83"},{"value_type":"BME680_humidity","value":"59.39"},{"value_type":"BME680_pressure","value":"102245.00"},{"value_type":"BME680_pressure_nn","value":"102295.00"},{"value_type":"BME680_air_quality","value":"6"},{"value_type":"BME680_quality_data","value":"6|138|0.17|0.15|31.62"},{"value_type":"TSLIR","value":"204.00"},{"value_type":"TSLFull","value":"263.00"},{"value_type":"TSLVisible","value":"0.00"},{"value_type":"samples","value":"230259"},{"value_type":"min_micro","value":"393"},{"value_type":"max_micro","value":"373355"},{"value_type":"sensor_start_date","value":"17.06.2019"},{"value_type":"sensor_start_time","value":"10:45:41"},{"value_type":"signal","value":"-53"}]}


Dort sind die TSL-Daten vorhanden....?

Danke, -MN
Einziger Spender an FHEM e.V. mit Dauerauftrag seit >= 24 Monaten

FHEM: MacMini/ESXi, 2-3 FHEM Instanzen produktiv
In-Use: STELLMOTOR, VALVES, PWM-PWMR, Xiaomi, Allergy, Proplanta, UWZ, MQTT,  Homematic, Luftsensor.info, ESP8266, ESERA

igami

Die Sensordaten werden in die FHEM geläufigen Benennungen für Readings übersezt:

        if($_->{value_type} =~ /P0$/){
          $_->{value_type} = "PM1";
        }
        elsif($_->{value_type} =~ /P1$/){
          $_->{value_type} = "PM10";
        }
        elsif($_->{value_type} =~ /P2$/){
          $_->{value_type} = "PM2.5";
        }
        elsif($_->{value_type} =~ /_air_quality$/){
          $_->{value_type} = "airQuality";
        }
        elsif($_->{value_type} =~ /_height$/){
          $_->{value_type} = "altitude";
        }
        elsif($_->{value_type} =~ /_date$/){
          $_->{value_type} = "date";
        }
        elsif($_->{value_type} =~ /humidity$/){
          $_->{value_type} = "humidity";
        }
        elsif($_->{value_type} =~ /_Full$/){
          $_->{value_type} = "illuminanceFull";
        }
        elsif($_->{value_type} =~ /_UV$/){
          $_->{value_type} = "illuminanceUV";
        }
        elsif($_->{value_type} =~ /_IR$/){
          $_->{value_type} = "illuminanceIR";
        }
        elsif($_->{value_type} =~ /_Visible$/){
          $_->{value_type} = "illuminanceVisible";
        }
        elsif($_->{value_type} =~ /_lat$/){
          $_->{value_type} = "latitude";
        }
        elsif($_->{value_type} =~ /_lon$/){
          $_->{value_type} = "longitude";
        }
        elsif($_->{value_type} =~ /pressure$/){
          $_->{value} = ($_->{value} > 10000 ? $_->{value} / 100 : $_->{value});
          $_->{value_type} = "pressure";
        }
        elsif($_->{value_type} =~ /pressure_nn$/){
          $_->{value} = ($_->{value} > 10000 ? $_->{value} / 100 : $_->{value});
          $_->{value_type} = "pressureNN";
        }
        elsif($_->{value_type} =~ /_risk/){
          $_->{value_type} = "UVRisk";
        }
        elsif($_->{value_type} eq "signal"){
          $_->{value_type} = "signal";
        }
        elsif($_->{value_type} =~ /temperature$/){
          $_->{value_type} = "temperature";
        }
        elsif($_->{value_type} =~ /_watt/){
          $_->{value_type} = "UVIntensity";
        }
        elsif($_->{value_type} =~ /_time$/){
          $_->{value_type} = "time";
        }


GPS funktioniert, soweit ich das sehe.
Bei TSL habe ich einen Unterstrich vor dem Full / IR / Visible erwartet. Muss dann wohl angepasst werden.
Bis dahin sollte es funktionieren im Slave das Attribut rawReading auf 1 zu setzen.
Pi3 mit fhem.cfg + DbLog/logProxy
Komm vorbei zum FHEM Treffen im Kreis Gütersloh! Das nächste Mal im April 2020.

MAINTAINER: archetype, LuftdatenInfo, monitoring, msgDialog, Nmap, powerMap
ToDo: AVScene, FluxLED

Morgennebel

Danke,


ich hab die Stelle im Modulsource auch gefunden, wollte aber nicht einfach ahnungslos rumspielen.

Das Luftdaten.info Projekt plant auch noch weitere Sensoren - Lärm finde ich extrem interessant.

Warum steigt eigentlich die Feinstaubbelastung bei Gewitter?

Danke, -MN
Einziger Spender an FHEM e.V. mit Dauerauftrag seit >= 24 Monaten

FHEM: MacMini/ESXi, 2-3 FHEM Instanzen produktiv
In-Use: STELLMOTOR, VALVES, PWM-PWMR, Xiaomi, Allergy, Proplanta, UWZ, MQTT,  Homematic, Luftsensor.info, ESP8266, ESERA