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

Python and python framework

Moderator: leecollings

Post Reply
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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?
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by akamming »

Anyone here to anwser my question?
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Lokonli »

You can make use of the connection mechanism

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

Who is online

Users browsing this forum: No registered users and 1 guest