Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KM2 Error in Logfile #108

Open
Dickschieder opened this issue May 23, 2022 · 23 comments
Open

KM2 Error in Logfile #108

Dickschieder opened this issue May 23, 2022 · 23 comments
Labels
bug Something isn't working

Comments

@Dickschieder
Copy link

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
Copy link
Owner

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
Copy link
Author

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

iobroker.2022-05-24.log.pdf

@Grizzelbee Grizzelbee added the bug Something isn't working label Jun 10, 2022
@Grizzelbee
Copy link
Owner

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

@Dickschieder
Copy link
Author

Dickschieder commented Aug 11, 2022

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

@kriegeru
Copy link

kriegeru commented Oct 30, 2022

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 added a commit that referenced this issue Oct 31, 2022
@Grizzelbee
Copy link
Owner

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

@kriegeru
Copy link

kriegeru commented Nov 6, 2022

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
Copy link
Author

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

@deepdreams71
Copy link

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
Copy link

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

@Dickschieder
Copy link
Author

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
Copy link

Hi,

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

@Dickschieder
Copy link
Author

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
Copy link

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
Copy link

backlink-market commented Jun 20, 2023

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
Copy link

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
Copy link
Author

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
Copy link

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

How to solve that?

@Dickschieder
Copy link
Author

@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
Copy link

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
Copy link

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

@Dickschieder
Copy link
Author

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
Copy link

backlink-market commented Jul 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants