Open mrfenyx opened 1 year ago
It sounds like your adapter receives some illegal / bad data from the station and hence crashes. Not good and something I would be keen to find.
Without debug log though a bit difficult to trouble shoot. I'll comment on #145 for a potential workaround.
The issue was that the batteries inside the sensor unit (the actual weather station) were not good and thus, the station shut down around 3 am. At this point the adapter lost connection, started restarting itself, cause a restart loop and eventually shut down.
Good to know the batteries solved. Still something the adapter should be better at handling...
I seem to be having a similar issue, filtered debug log: sainlogic-restart-loop.log
This has happened two times in the last 3 days. I must admit that I have been using version 0.10.3 of the adapter, just noticed that 0.10.5 is available. Updated the adapter and will see if any change can be observed. My setup:
The battery of the WS3500 is reported to be good (the station was installed ca. 2 months ago). One of the WH51s is reporting unplausible values, it could be that its battery is low or there is some HW issue. I am not at home now, will check the sensor next week when I get back. ioBroker is running in a Docker container on a Synology DS418Play in case it matters.
Hope this information helps.
@elek76 : It is probably the unreasonable values:
2023-08-09 08:57:40.402 - debug: sainlogic.0 (8590) Listener received WU update: {"ID":"1","PASSWORD":"__PASSWORD__","tempf":"-9999","humidity":"-9999","dewptf":"-9999","windchillf":"-9999","winddir":"-9999","windspeedmph":"-9999","windgustmph":"-9999","rainin":"-9999","dailyrainin":"-9999","weeklyrainin":"-9999","monthlyrainin":"-9999","yearlyrainin":"-9999","solarradiation":"-9999","UV":"-9999","indoortempf":"72.9","indoorhumidity":"58","absbaromin":"29.749","baromin":"30.253","lowbatt":"0","dateutc":"now","softwaretype":"EasyWeatherPro_V5.1.1","action":"updateraw","realtime":"1","rtfreq":"5"}
there is a lot of -9999 values in here. I can put some checks in place if it still causes issues.
@phifogg Thanks for checking. FYI, the update to 0.10.5 did not fix the issue (which was kind of expected):
It was caused again by unplausible values, apparently all outdoor values are incorrect:
2023-08-10 02:36:41.154 - [34mdebug[39m: sainlogic.0 (9844) Listener received WU update: {"ID":"1","PASSWORD":"...","tempf":"-9999","humidity":"-9999","dewptf":"-9999","windchillf":"-9999","winddir":"-9999","windspeedmph":"-9999","windgustmph":"-9999","rainin":"-9999","dailyrainin":"-9999","weeklyrainin":"-9999","monthlyrainin":"-9999","yearlyrainin":"-9999","solarradiation":"-9999","UV":"-9999","indoortempf":"73.0","indoorhumidity":"58","absbaromin":"29.760","baromin":"30.265","lowbatt":"0","dateutc":"now","softwaretype":"EasyWeatherPro_V5.1.1","action":"updateraw","realtime":"1","rtfreq":"5"}
The device seem to send these wrong values to wunderground and ecowitt, too:
The last correct values were reported at 2023-08-10 02:30:33.674, then 3 times wrong values and uncaught exception before the adapter was shut down.
ID 1 is the WS3500. I will also try to find out if there is a fix for the WS3500 to not report incorrect values.
Update: after adjusting the antenna of the GW1100 to better reach the fourth WH51 and adding two new WH31s to the same gateway, the restart loops have disappeared. The events could be unrelated as I haven't changed anything in the WS3500 setup, the bogus updates of which have caused the restart loop. I will continue observing the setup and update here if anything comes up.
Describe the bug
For some reason, during the night my Weather station (WS3500) disconnects. I presume the batteries are not ok and it runs out of solar power. At this point, the adapter shuts down with the following errors:
Due to another issue (https://github.com/phifogg/ioBroker.sainlogic/issues/145) I can't enable any log level above error as my log will be spammed with warnings but the time stamp of the above error coincides with the time when I stop receiving data from the station.
Versions: