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

[KEBA] Scheduled runnable ended with an exception #16472

Closed
Andre1Becker opened this issue Mar 1, 2024 · 9 comments · Fixed by #16474
Closed

[KEBA] Scheduled runnable ended with an exception #16472

Andre1Becker opened this issue Mar 1, 2024 · 9 comments · Fixed by #16474
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@Andre1Becker
Copy link

Andre1Becker commented Mar 1, 2024

Expected Behavior

Get state of Items from Wallbox

Current Behavior

Items not updated with values (staying at NULL). Heres something i found in openhab.log after disable and enable the keba thing:

2024-03-01 07:41:16.937 [DEBUG] [nternal.handler.KeContactTransceiver] - Stopping the the KEBA KeContact transceiver
2024-03-01 07:41:16.939 [DEBUG] [ba.internal.handler.KeContactHandler] - isKebaReachable() returns true
2024-03-01 07:41:16.939 [DEBUG] [nternal.handler.KeContactTransceiver] - Starting the the KEBA KeContact transceiver
2024-03-01 07:41:16.939 [INFO ] [nternal.handler.KeContactTransceiver] - Listening for incoming data on /[0:0:0:0:0:0:0:0]:7090
2024-03-01 07:41:16.939 [DEBUG] [nternal.handler.KeContactTransceiver] - Establishing the connection to the KEBA KeContact 'keba:kecontact:1a3b4b58a7'
2024-03-01 07:41:16.940 [DEBUG] [ba.internal.handler.KeContactHandler] - Running pollingRunnable to connect Keba wallbox
2024-03-01 07:41:16.941 [DEBUG] [ba.internal.handler.KeContactHandler] - isKebaReachable() returns true
2024-03-01 07:41:17.040 [DEBUG] [nternal.handler.KeContactTransceiver] - Sending 'report 1' on the channel '/openHABIP:57814'->'/WALLBOXIP:7090'
2024-03-01 07:41:17.140 [DEBUG] [nternal.handler.KeContactTransceiver] - Received {
"ID": "1",
"Product": "KC-P30-EC2204U2-M0R-CC",
"Serial": "12345678 (MASK",
"Firmware":"P30 v 3.10.53 (230713-211537)",
"COM-module": 1,
"Backend": 0,
"timeQ": 3,
"DIP-Sw1": "0xa2",
"DIP-Sw2": "0x08",
"Sec": 53381
}
 from /WALLBOXIP:7090 on the transceiver listener port 
2024-03-01 07:41:17.141 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.IllegalArgumentException: Not a valid series: 'U'
	at org.openhab.binding.keba.internal.KebaBindingConstants$KebaSeries.getSeries(KebaBindingConstants.java:106) ~[?:?]
	at org.openhab.binding.keba.internal.handler.KeContactHandler.onData(KeContactHandler.java:263) ~[?:?]
	at org.openhab.binding.keba.internal.handler.KeContactHandler.pollingRunnable(KeContactHandler.java:192) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]

Your Environment

using obenHAB Docker Container 4.1.1
Wallbox firmware version(s):
image

DSW Settings:

image

@Andre1Becker Andre1Becker added the bug An unexpected problem or unintended behavior of an add-on label Mar 1, 2024
@Andre1Becker Andre1Becker changed the title [Keba] Scheduled runnable ended with an exception [KEBA] Scheduled runnable ended with an exception Mar 1, 2024
@MikeTheTux
Copy link
Contributor

Right now the binding supports the following types:

        E('0'),
        B('1'),
        C('2', '3'),
        X('A', 'B', 'C', 'D', 'E', 'G', 'H');

You have an "U" (char 13):
"Product": "KC-P30-EC2204U2-M0R-CC"

Can you provide some info's on your actual device?

@MikeTheTux
Copy link
Contributor

found it - it's an "X". "U" as well as "S" are missing in the above list:

image

Others seem to be mapped as "X" while they miss in the screenshot ("A", "C", "D", "G").

@Andre1Becker
Copy link
Author

Hey, @MikeTheTux,

Thanks for looking in to this!

So what does that actually mean? Could I provide you with something else like log files from the wallbox it self?

Cheers,
Andre

@MikeTheTux
Copy link
Contributor

So what does that actually mean? Could I provide you with something else like log files from the wallbox it self?

Everything needed should be available.
I will start working on a fix. While it is in review process I will ask you to give it already a try in order to test the implementation.

@Andre1Becker
Copy link
Author

Andre1Becker commented Mar 1, 2024

Sure, of course. Glad to help! Thanks again for your time!
Just hit me up when it's ready to test :-)

@MikeTheTux
Copy link
Contributor

Just hit me up when it's ready to test :-)

Ready: org.openhab.binding.keba-4.2.0-SNAPSHOT-2024-03-01.zip

@Andre1Becker
Copy link
Author

Perfect! Will get back to you maybe tonight or tomorrow morning!

@Andre1Becker
Copy link
Author

Just hit me up when it's ready to test :-)

Ready: org.openhab.binding.keba-4.2.0-SNAPSHOT-2024-03-01.zip

Works perfect!
image

Thanks for the Quick Fix!

You just won the Internet Today! Have a good one mate!

@Andre1Becker
Copy link
Author

Andre1Becker commented Mar 2, 2024

Others seem to be mapped as "X" while they miss in the screenshot ("A", "C", "D", "G").

Just for Reference:
I found it in a different manual page 8 :

Screenshot_20240302_074817_Drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants