Grizzelbee / ioBroker.resol

ioBroker Adapter for Devices that communicate via Resol VBus
2 stars 3 forks source link

KM2 Error in Logfile #108

Open Dickschieder opened 2 years ago

Dickschieder commented 2 years ago

Hello, i installed the ioBroker Adapter and it's working fine. I'm using the KM2, but I always get the error in logfile with this information:

Error: Unable to complete value {"key":0,"value":{"valueId":"Handbetrieb"}} image

How can I solve this?

best regards Sebastian

Grizzelbee commented 2 years ago

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.

Dickschieder commented 2 years ago

hello @Grizzelbee thanks here is the logfile after restarting the resol adapter.

iobroker.2022-05-24.log.pdf

Grizzelbee commented 2 years ago

Hi @Dickschieder Thanks! I'll take a look and try to fix this.

Dickschieder commented 2 years ago

hi @Grizzelbee Hi, did you find anything? In version 1.2.0 it's still the same in log

kriegeru commented 1 year ago

Hello, I get the same error in the log. My device is DeltaSol SLT. When I make changes in the file "lib\resol-setup\deltasol-slt.js" the errormessage changes too. But i don't find the right statement.

image

Can you help to fix it? Thanks

Grizzelbee commented 1 year ago

Your Issue with the resol adapter should be fixed in v1.3.0

kriegeru commented 1 year ago

Hello, I have updated the Adapter to Version 1.3.0, but the error is still present. Here is a clipping of the actual log. image

Many greats and thanks for help

Dickschieder commented 1 year ago

I've still the same issue with KM2. The only difference is, before there was "valueID":"Handbetrieb" and now it's "valueID":"Handbetrieb1"

deepdreams71 commented 1 year ago

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

backlink-market commented 1 year ago

I have the same issue. Is there something available to fix it?

Dickschieder commented 1 year ago

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. image

backlink-market commented 1 year ago

Hi,

what do you mean with "values are still correct" ? Regards

Dickschieder commented 1 year ago

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

backlink-market commented 1 year ago

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

backlink-market commented 1 year ago

hum, it getting even worse now: Screenshot_10

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

backlink-market commented 1 year ago

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.

Dickschieder commented 1 year ago

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

hi @backlink-market

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 commented 1 year ago

Getting more Errors now: TypeError: Cannot read properties of undefined (reading 'cmd') Screenshot_1

How to solve that?

Dickschieder commented 1 year ago

@backlink-market I'm sorry - I'm not a developer. In my Log it's different image 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. image

backlink-market commented 1 year ago

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.

backlink-market commented 1 year ago

unfortunately, the errors are back and spamming my logs every 30s Screenshot_2

Dickschieder commented 1 year ago

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. image What about the debug? Are there any new information?

backlink-market commented 1 year ago

yes, that correct. In fact I got 2 DeltaSol BX Plus and one DL3. Since DL3 seems to allow only one channel per instance I have to set up 2 instances one with Channel 1 and another one with channel 2

Screenshot_11 Screenshot_6