Example Device - Custom.indigoPlugin -- errors

Posted on
Wed Feb 08, 2023 5:37 pm
tailwheel offline
Posts: 24
Joined: Mar 14, 2007
Location: Colorado

Example Device - Custom.indigoPlugin -- errors

I've installed the "Example Device - Custom.indigoPlugin" from the "IndigoSDK-2022.1" download and it immediately starts throwing errors:

Loading plugin "Example Device - Custom 2022.1.0" using API v3.0
Starting plugin "Example Device - Custom 2022.1.0" (pid 41475)
Started plugin "Example Device - Custom 2022.1.0"
Example Device - Custom Debug startup called
Example Device - Custom Error Error in plugin execution startup:

File "plugin.py", line 44, in startup
type: state image updating of devices is private

Example Device - Custom Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 89, in runConcurrentThread
type: state value updating of plugin devices is private

Example Device - Custom Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Example Device - Custom Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 89, in runConcurrentThread
type: state value updating of plugin devices is private

The line 89 error repeats until the plugin is disabled, at which point it throws a final error:
Disabling plugin "Example Device - Custom 2022.1.0"
Stopping plugin "Example Device - Custom 2022.1.0" (pid 41475)
Example Device - Custom Debug stop_concurrent_thread called
Example Device - Custom Debug stop_concurrent_thread called
Example Device - Custom Debug shutdown called
Example Device - Custom Error Error in plugin execution shutdown:

File "plugin.py", line 66, in shutdown
type: state value updating of plugin devices is private

Stopped plugin "Example Device - Custom 2022.1.0"

Line 44:
Code: Select all
self.server_time_dev.updateStateImageOnServer(indigo.kStateImageSel.TimerOn)

Line 89:
Code: Select all
self.server_time_dev.updateStatesOnServer(key_value_list)

Line 66:
Code: Select all
self.server_time_dev.updateStatesOnServer(key_value_list)

Based on the error messages, these methods are somehow considered private and are preventing the plugin from working properly.

I've re-installed the plugin with no effect and found nothing in the forum. (Installed Indigo v2022.1.2)

Any idea why this is happening and how to fix it?

Best,
Greg

Posted on
Thu Feb 09, 2023 8:45 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Example Device - Custom.indigoPlugin -- errors

Hi Greg,

The plugin is trying to update a state on the device named "Example Server Time". The plugin creates that device if it doesn't already exist, but if it does is just uses the already existing one. Somehow in your database you have a version of that device that isn't "owned" by the Example Device - Custom plugin. I'm not sure how that happened, but if you stop the plugin and then delete that device it will probably work correctly (since the plugin will re-create the device).

Image

Posted on
Thu Feb 09, 2023 9:41 am
tailwheel offline
Posts: 24
Joined: Mar 14, 2007
Location: Colorado

Re: Example Device - Custom.indigoPlugin -- errors

Deleting "Example Server Time" solved it.

Thanks Matt.

Best,
Greg

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests