iobroker-community-adapters / ioBroker.solarlog

iobroker Adapter to access your solarlog meter data
MIT License
12 stars 5 forks source link

[info] (14085) ack is not set! #32

Closed jaschkopf closed 3 years ago

jaschkopf commented 4 years ago

Hello,

my adapter writes every 10 seconds this info message in the logfile:

(14085) ack is not set! What does it mean and how do I fix it? I use a SolarLog Base15 with a SMA inverter connected by Speedwire and a ernergymeter connected by modbus.

forelleblau commented 4 years ago

Hi It means, that a subscribed state has changed with ack=false. That should not happen because the adapter sets all states with ack=false. Getting a clue of the problem would be easier for me if I had a debug-log.

At least in the basic-mode (without any options chosen in the advanced settings) the adapter shold work with a solarlog base since the open JSON interface is described in its manual. Is the adapter running and you just get the log - messages (in this case I just need the debug-log messages 'around' the ack-message.

jaschkopf commented 4 years ago

When I restart the Adapter the log looks like this:

2020-05-15 11:56:50.108  - info: host.raspberrypi stopInstance system.adapter.solarlog.0 (force=false, process=true)
2020-05-15 11:56:50.111  - info: host.raspberrypi stopInstance system.adapter.solarlog.0 send kill signal
2020-05-15 11:56:50.116  - info: solarlog.0 (4115) Got terminate signal TERMINATE_YOURSELF
2020-05-15 11:56:50.118  - info: solarlog.0 (4115) [END] Stopping solarlog adapter...
2020-05-15 11:56:50.120  - info: solarlog.0 (4115) terminating
2020-05-15 11:56:50.121  - info: solarlog.0 (4115) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2020-05-15 11:56:50.657  - info: host.raspberrypi instance system.adapter.solarlog.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2020-05-15 11:56:53.128  - info: host.raspberrypi instance system.adapter.solarlog.0 started with pid 8619
2020-05-15 11:56:56.658  - warn: solarlog.0 (8619) Object solarlog.0.status.yieldyear is invalid: obj.common.type has an invalid value (timestamp) but has to be one of number, string, boolean, array, object, mixed, file, json
2020-05-15 11:56:56.660  - warn: solarlog.0 (8619) This object will not be created in future versions. Please report this to the developer.
2020-05-15 11:56:57.088  - info: solarlog.0 (8619) starting. Version 2.0.0 in /opt/iobroker/node_modules/iobroker.solarlog, node: v10.20.1, js-controller: 3.1.4
2020-05-15 11:56:57.117  - info: solarlog.0 (8619) [START] Starting solarlog adapter
2020-05-15 11:56:57.120  - info: solarlog.0 (8619) Unterzähler - Import: false
2020-05-15 11:56:57.121  - info: solarlog.0 (8619) Historische Daten werden nicht abgerufen
2020-05-15 11:56:57.121  - info: solarlog.0 (8619) Forecast - Datenabruf: false
2020-05-15 11:56:57.224  - warn: solarlog.0 (8619) login NICHT OK, starte zuerst Login, danach Request
2020-05-15 11:56:59.298  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:56:59.301  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:07.186  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:07.189  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:27.228  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:27.235  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:37.226  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:37.229  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:57.193  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:57:57.195  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:58:07.235  - info: solarlog.0 (8619) ack is not set!
2020-05-15 11:58:07.237  - info: solarlog.0 (8619) ack is not set!
forelleblau commented 4 years ago

Hi I found the reported error:

2020-05-15 11:56:56.658 - �[33mwarn�[39m: solarlog.0 (8619) Object solarlog.0.status.yieldyear is invalid: obj.common.type has an invalid value (timestamp) but has to be one of number, string, boolean, array, object, mixed, file, json

2020-05-15 11:56:56.660 - �[33mwarn�[39m: solarlog.0 (8619) This object will not be created in future versions. Please report this to the developer.

in my code and fixed it. The fix will be published with the next version.

But i was not able to reproduce the 'ack not set' log on my system. Could you please set the solarlog-adapter's instance - loglevel to 'debug' and then post or mail the log of a restart. Then I should be able to see which object is responsibel for the error.

According the information I found in the SolarLog Base 15 Manual, the adapter shold work with this hardware.

Thank you.