phifogg / ioBroker.sainlogic

An IoBroker Adapter for Sainlogic based weather stations
MIT License
20 stars 11 forks source link

last_listener_update #149

Closed pp-git closed 1 year ago

pp-git commented 1 year ago

Hallo Daniel,

irgendwie hat der Adapter seit dem 10.1.2023 kein update mehr gesendet/in den DP eingetragen. Ich brauche allerdings die Rohdaten da ich hier die
"wh90batt": "2.88", "ws90cap_volt": "2.5", auslese, die speziell als Batterie und Kondensator-Akku in meiner Station verbaut sind. { "PASSKEY": "", "stationtype": "GW2000A_V2.2.0", "runtime": "4641298", "dateutc": "2023-01-10 08:24:34", "tempinf": "90.32", "humidityin": "27", "baromrelin": "30.165", "baromabsin": "29.309", "tempf": "39.92", "humidity": "88", "winddir": "91", "windspeedmph": "2.24", "windgustmph": "9.39", "maxdailygust": "12.75", "solarradiation": "17.60", "uv": "0", "rrain_piezo": "0.000", "erain_piezo": "1.197", "hrain_piezo": "0.000", "drain_piezo": "0.000", "wrain_piezo": "1.197", "mrain_piezo": "1.307", "yrain_piezo": "1.307", "ws90cap_volt": "2.5", "ws90_ver": "119", "soilmoisture1": "43", "soilmoisture2": "59", "soilmoisture3": "58", "soilbatt1": "1.5", "soilbatt2": "1.4", "soilbatt3": "1.4", "wh90batt": "2.88", "freq": "868M", "model": "GW2000A" }

phifogg commented 1 year ago

Kannst Du ein Debug-Log anfügen? Sendet die Station noch?

pp-git commented 1 year ago

Ja alle anderen DP's sind aktuell und funktionieren, bis auf den DP sainlogic.0.info.last_listener_update. Der steckt wie oben gesagt am 10.1.2023 fest und aktualisiert sich nicht mehr.

image

2023-02-07 10:18:56.907 - debug: sainlogic.0 (20417) Listener body is PASSKEY=XXXXXXXXXX&stationtype=GW2000A_V2.2.2&runtime=341117&dateutc=2023-02-07+09:18:56&tempinf=87.80&humidityin=26&baromrelin=30.629&baromabsin=29.772&tempf=31.28&humidity=70&winddir=89&windspeedmph=6.49&windgustmph=9.84&maxdailygust=17.00&solarradiation=163.85&uv=1&rrain_piezo=0.000&erain_piezo=0.000&hrain_piezo=0.000&drain_piezo=0.000&wrain_piezo=0.437&mrain_piezo=0.992&yrain_piezo=4.106&ws90cap_volt=2.8&ws90_ver=119&soilmoisture1=39&soilmoisture2=64&soilmoisture3=56&soilbatt1=1.4&soilbatt2=1.4&soilbatt3=1.4&wh90batt=2.82&freq=868M&model=GW2000A&interval=1 2023-02-07 10:18:56.907 - debug: sainlogic.0 (20417) No mapping found for dataelement: PASSKEY 2023-02-07 10:18:56.908 - debug: sainlogic.0 (20417) Extracting value for info.softwaretype(stationtype) 2023-02-07 10:18:56.908 - debug: sainlogic.0 (20417) No mapping found for dataelement: runtime 2023-02-07 10:18:56.908 - debug: sainlogic.0 (20417) No mapping found for dataelement: dateutc 2023-02-07 10:18:56.908 - debug: sainlogic.0 (20417) Extracting value for weather.current.indoortemp(tempinf) 2023-02-07 10:18:56.909 - debug: sainlogic.0 (20417) Extracting value for weather.current.indoorhumidity(humidityin) 2023-02-07 10:18:56.909 - debug: sainlogic.0 (20417) Extracting value for weather.current.pressurerel(baromrelin) 2023-02-07 10:18:56.909 - debug: sainlogic.0 (20417) Extracting value for weather.current.pressureabs(baromabsin) 2023-02-07 10:18:56.910 - debug: sainlogic.0 (20417) Extracting value for weather.current.outdoortemp(tempf) 2023-02-07 10:18:56.910 - debug: sainlogic.0 (20417) Extracting value for weather.current.outdoorhumidity(humidity) 2023-02-07 10:18:56.910 - debug: sainlogic.0 (20417) Extracting value for weather.current.winddir(winddir) 2023-02-07 10:18:56.910 - debug: sainlogic.0 (20417) Extracting value for weather.current.windspeed(windspeedmph) 2023-02-07 10:18:56.911 - debug: sainlogic.0 (20417) Extracting value for weather.current.windgustspeed(windgustmph) 2023-02-07 10:18:56.911 - debug: sainlogic.0 (20417) Extracting value for weather.current.maxdailygust(maxdailygust) 2023-02-07 10:18:56.911 - debug: sainlogic.0 (20417) Extracting value for weather.current.solarradiation(solarradiation) 2023-02-07 10:18:56.912 - debug: sainlogic.0 (20417) Extracting value for weather.current.uvi(uv) 2023-02-07 10:18:56.912 - debug: sainlogic.0 (20417) Extracting value for weather.current.rain_piezo(rrain_piezo) 2023-02-07 10:18:56.912 - debug: sainlogic.0 (20417) Extracting value for weather.current.eventrain_piezo(erain_piezo) 2023-02-07 10:18:56.912 - debug: sainlogic.0 (20417) Extracting value for weather.current.hourlyrain_piezo(hrain_piezo) 2023-02-07 10:18:56.913 - debug: sainlogic.0 (20417) Extracting value for weather.current.dailyrain_piezo(drain_piezo) 2023-02-07 10:18:56.913 - debug: sainlogic.0 (20417) Extracting value for weather.current.weeklyrain_piezo(wrain_piezo) 2023-02-07 10:18:56.913 - debug: sainlogic.0 (20417) Extracting value for weather.current.monthlyrain_piezo(mrain_piezo) 2023-02-07 10:18:56.914 - debug: sainlogic.0 (20417) Extracting value for weather.current.yearlyrain_piezo(yrain_piezo) 2023-02-07 10:18:56.914 - debug: sainlogic.0 (20417) No mapping found for dataelement: ws90cap_volt 2023-02-07 10:18:56.914 - debug: sainlogic.0 (20417) No mapping found for dataelement: ws90_ver 2023-02-07 10:18:56.914 - debug: sainlogic.0 (20417) Extracting value for weather.current.1.soilmoisture(soilmoisture1) 2023-02-07 10:18:56.915 - debug: sainlogic.0 (20417) Extracting value for weather.current.2.soilmoisture(soilmoisture2) 2023-02-07 10:18:56.915 - debug: sainlogic.0 (20417) Extracting value for weather.current.3.soilmoisture(soilmoisture3) 2023-02-07 10:18:56.915 - debug: sainlogic.0 (20417) Extracting value for weather.info.1.soilbatt(soilbatt1) 2023-02-07 10:18:56.915 - debug: sainlogic.0 (20417) Extracting value for weather.info.2.soilbatt(soilbatt2) 2023-02-07 10:18:56.915 - debug: sainlogic.0 (20417) Extracting value for weather.info.3.soilbatt(soilbatt3) 2023-02-07 10:18:56.915 - debug: sainlogic.0 (20417) No mapping found for dataelement: wh90batt 2023-02-07 10:18:56.916 - debug: sainlogic.0 (20417) Extracting value for info.freq(freq) 2023-02-07 10:18:56.916 - debug: sainlogic.0 (20417) Extracting value for info.model(model) 2023-02-07 10:18:56.916 - debug: sainlogic.0 (20417) No mapping found for dataelement: interval 2023-02-07 10:18:56.916 - debug: sainlogic.0 (20417) Setting value from data for info.softwaretype to GW2000A_V2.2.2 2023-02-07 10:18:56.916 - debug: sainlogic.0 (20417) Setting value from data for weather.current.indoortemp to 31 2023-02-07 10:18:56.916 - debug: sainlogic.0 (20417) Target for indoortemp unit is set: °C, using conversion: null 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Setting value from data for weather.current.indoorhumidity to 26 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Setting value from data for weather.current.pressurerel to 1037.1 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Target for pressurerel unit is set: hPa, using conversion: null 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Setting value from data for weather.current.pressureabs to 1008.1 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Target for pressureabs unit is set: hPa, using conversion: null 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Setting value from data for weather.current.outdoortemp to -0.4 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Target for outdoortemp unit is set: °C, using conversion: null 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Setting value from data for weather.current.outdoorhumidity to 70 2023-02-07 10:18:56.917 - debug: sainlogic.0 (20417) Setting value from data for weather.current.winddir to 89 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Setting value from data for weather.current.windspeed to 10.4 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Target for windspeed unit is set: km/h, using conversion: null 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Setting value from data for weather.current.windgustspeed to 15.8 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Target for windgustspeed unit is set: km/h, using conversion: null 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Setting value from data for weather.current.maxdailygust to 27.4 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Target for maxdailygust unit is set: km/h, using conversion: null 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Setting value from data for weather.current.solarradiation to 20760 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Target for solarradiation unit is set: lx, using conversion: null 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Setting value from data for weather.current.uvi to 1 2023-02-07 10:18:56.918 - debug: sainlogic.0 (20417) Setting value from data for weather.current.rain_piezo to 0 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Target for rain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Setting value from data for weather.current.eventrain_piezo to 0 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Target for eventrain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Setting value from data for weather.current.hourlyrain_piezo to 0 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Target for hourlyrain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Setting value from data for weather.current.dailyrain_piezo to 0 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Target for dailyrain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Setting value from data for weather.current.weeklyrain_piezo to 11.1 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Target for weeklyrain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.919 - debug: sainlogic.0 (20417) Setting value from data for weather.current.monthlyrain_piezo to 25.2 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Target for monthlyrain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.current.yearlyrain_piezo to 104.3 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Target for yearlyrain_piezo unit is set: mm, using conversion: null 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.current.1.soilmoisture to 39 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.current.2.soilmoisture to 64 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.current.3.soilmoisture to 56 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.info.1.soilbatt to 1.4 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.info.2.soilbatt to 1.4 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for weather.info.3.soilbatt to 1.4 2023-02-07 10:18:56.920 - debug: sainlogic.0 (20417) Setting value from data for info.freq to 868M 2023-02-07 10:18:56.921 - debug: sainlogic.0 (20417) Setting value from data for info.model to GW2000A 2023-02-07 10:18:56.921 - debug: sainlogic.0 (20417) Listener received EW update: {"PASSKEY":"XXXXXXXXXX","stationtype":"GW2000A_V2.2.2","runtime":"341117","dateutc":"2023-02-07 09:18:56","tempinf":"87.80","humidityin":"26","baromrelin":"30.629","baromabsin":"29.772","tempf":"31.28","humidity":"70","winddir":"89","windspeedmph":"6.49","windgustmph":"9.84","maxdailygust":"17.00","solarradiation":"163.85","uv":"1","rrain_piezo":"0.000","erain_piezo":"0.000","hrain_piezo":"0.000","drain_piezo":"0.000","wrain_piezo":"0.437","mrain_piezo":"0.992","yrain_piezo":"4.106","ws90cap_volt":"2.8","ws90_ver":"119","soilmoisture1":"39","soilmoisture2":"64","soilmoisture3":"56","soilbatt1":"1.4","soilbatt2":"1.4","soilbatt3":"1.4","wh90batt":"2.82","freq":"868M","model":"GW2000A","interval":"1"}

phifogg commented 1 year ago

Ok, danke. jetzt sehe ich dass dein Listener im Ecowitt-Protokoll läuft. Ich schau mir das an.

phifogg commented 1 year ago

Ist diese Problem noch aktuell? In meinem Adapter wird der Wert sauber gesetzt. Ggf. hab ich das behoben ohne zu wissen wie/wann :D

Welche Version hast Du im Einsatz?

pp-git commented 1 year ago

Ja das problem besteht weiterhin, ich habe die v0.10.0 in der es nicht funktioniert. Downgrade ich auf v0.9.0 geht der DP sainlogic.0.info.last_listener_update problemlos Upgrade ich wieder auf v.0.10.0 bleibt er sofort stehen und .... siehe 1. Post

Matzebhv commented 1 year ago

Ich habe das grade bei mir geschaut. Das letzte mal wurde der DP hier am 28.03. aktualisiert. An diesem Datum habe ich meine defekte Station ausgetauscht und dabei das Protokoll von WU nach Ecowitt gewechselt.

Gruß Matthias

phifogg commented 1 year ago

Danke... das war des Rätsels Lösung! Fehler ist gefunden, update kommt vermutlich im Laufe des Tages!

phifogg commented 1 year ago

0.10.3 sollte das nun endlich beheben. Liegt ab jetzt im Git und NPM. Installiere doch mal von dort und melde dich wenn es noch Probleme gibt.

pp-git commented 1 year ago

Danke Dir, funktioniert wieder, last_listener_update bringt wieder aktuelle Daten

elek76 commented 11 months ago

Bei mir wird last_listener_update wieder nicht aktualisiert (habe den aktuellen Code von GitHub installiert). Grund scheint das hier zu sein: https://github.com/phifogg/ioBroker.sainlogic/commit/b75e53c5ba264b6d8807a1cefaaf2d6580c67651#r126304701 PR: https://github.com/phifogg/ioBroker.sainlogic/pull/182 - das hat bei mir das Problem gelöst.