KM2 Error in Logfile
Opened this issue · 23 comments
I assume that it's caused by the congtroller - not the KM2. The KM2 does only the data transfer.
Please write a debug log from the start of the adapter up to the error and post it here.
With that I can take a look what's causing the issue.
hello @Grizzelbee thanks
here is the logfile after restarting the resol adapter.
Hi @Dickschieder
Thanks! I'll take a look and try to fix this.
hi @Grizzelbee
Hi, did you find anything? In version 1.2.0 it's still the same in log
Your Issue with the resol adapter should be fixed in v1.3.0
I've still the same issue with KM2. The only difference is, before there was "valueID":"Handbetrieb" and now it's "valueID":"Handbetrieb1"
Hi , I have the same issue with KM2 / Deltasol SLT
Error: Unable to complete value {"key":0,"value":{"valueId":"Handbetrieb"}}
is there any fix planned?
As Resol I have a DeltaSol SLT Firmeware 2.0.5
I have the same issue. Is there something available to fix it?
Hello @backlink-market
no, there is still the same issue. With the last version it changes only from "Handbetrieb" to "Handbetrieb1", but the values are still correct.
Hi,
what do you mean with "values are still correct" ?
Regards
I'm sorry,
I mean the data point values are ok. Maybe I found a temporary solution. I guess, the adapter will add a function which not exist. So I changed the file
nano /opt/iobroker/node_modules/iobroker.resol/lib/resol-setup/deltasol-bx-plus.js
and removed the function "Pumpe1"
After that, I restarted the adapter. I got an error, that the function is not found, but it was only one time. After that the logfile was clean of RESOL
regards Sebastian
Hi,
I removed the whole content of this file because I got repeating errors when I just delete the fct from the Json.
So, now the file contains just: { }
Then I just receive this errors on start but not repeating:
resol.0 | 2023-06-12 15:21:43.836 | error | [generateDP] Error: TypeError: Cannot read properties of undefined (reading 'setup')
resol.0 | 2023-06-12 15:21:43.834 | warn | [getJSONByResolId] Controller type not found in setup file.
Think thats fine. The values are pulled correctly
hum, it getting even worse now:
TypeError: Cannot read properties of undefined (reading 'forEach')
What about your solution? @Dickschieder Can you post your file content?
@Grizzelbee Can you please have a look at it? Thank you
My file (deltasol-bx-plus.js) looks like this now:
{"dp": [{"dpName":"Pumpe1", "name":"Manual control for this relay.", "type":"number","min":0, "max":2, "states":{"0":"Off", "1":"Auto", "2":"On"}}
],
"fct": []
}
And this one gives just a error on start but no more. I am ok. with that. Nevertheless, @Grizzelbee should have a look at it to fix it permantently.
hum, it getting even worse now: !
TypeError: Cannot read properties of undefined (reading 'forEach')
What about your solution? @Dickschieder Can you post your file content?
@Grizzelbee Can you please have a look at it? Thank you
I have also only the start errors. My file ist like this:
//{"dp": [{"dpName":"Pumpe1", "name":"Manual control for this relay.", "type":"number","min":0, "max":2, "states":{"0":"Off", "1":"Auto", "2":"On"}}
//],
// "fct": [{"name":"Pumpe1","cmd":"Handbetrieb1","val":"val"}
//]}
@backlink-market I'm sorry - I'm not a developer. In my Log it's different
But I'm running a newer node.js version and have a Linux Debian. But I think it doesn't matter.
Maybe you can switch the adapter to debug and see a little bit more whats happen.
I let it run in the debug, the error doesn't come up.
Now I've put it back to normal and so far the error hasn't come back. But last time it also took a bit until the error came.
I'll keep an eye on it and update you.
hello @backlink-market
you have two instances of resol adapter. Is this right? You have two KM2 adapter?
here is a screenshot of my settings - maybe there is something different.
What about the debug? Are there any new information?