Page 1 of 1

Suppress Error: <name> hardware (<idx>) thread seems to have ended unexpectedly

Posted: Tuesday 21 January 2025 8:48
by akamming
Hi,

I am the author of the Volvo plugin. Volvo recently added something to the API, so that for invocation commands (lock/unlock car, start/stop climatization) so that i now every once in a while get status code 427 which means i have to keep retrying till the car is available again

so pseudo code:

Code: Select all

onCommand(...): 
	if deviceid==CLIMATIZATION:
		status = VolvoAPI_call_for_switching_on_off_climatization()
		if status==427:
			retry VolvoAPI_call_for_switching_on_off_climatization() every X seconds until succeeds...
This code works fine. The plugin also works fine, cause even when this process take 1 minute (which is the max)

However when ik takes about 1 minute, domoticz does log this line:

Code: Select all

Error: XC40 hardware (34) thread seems to have ended unexpectedly
This line is not correct cause, the plugin still works perfectly. After this wait time it continues again.

How can i suppress or avoid this error?

Re: Suppress Error: <name> hardware (<idx>) thread seems to have ended unexpectedly

Posted: Friday 24 January 2025 23:16
by akamming
Anyone here to anwser my question?

Re: Suppress Error: hardware () thread seems to have ended unexpectedly

Posted: Saturday 25 January 2025 16:27
by Lokonli
You can make use of the connection mechanism

https://wiki.domoticz.com/Developing_a_ ... onnections