To disable/enable a plugin requires its position to be known in the list. I cannot see any correlation with the list in settings.ini
Announcement
Collapse
No announcement yet.
Jon00 Homeseer Plugin Enable/Disable utility
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
Originally posted by jon00 View PostTo disable/enable a plugin requires its position to be known in the list. I cannot see any correlation with the list in settings.ini
Only other thing I can think of is to interpret the /interfaces html page... as I couldn't find any other place where a list of plugins (with instances) are stored.stefxx
Comment
-
Originally posted by stefxx View PostOnly other thing I can think of is to interpret the /interfaces html page... as I couldn't find any other place where a list of plugins (with instances) are stored.
Comment
-
Originally posted by jon00 View PostWhich happens now when you enter the plugin name. The problem is that it will select the first instance of the named plugin found (if more than one installed) which may be incorrect.stefxx
Comment
-
I understand. The problem is that there is no standard what is put in the plugin list and developers do what they want with HTML code, buttons, links etc. It gets worse when there are entries where you cannot disable an instance (remote plugins) so the list position has to be corrected to reflect this too.
Comment
-
Version 2 is now available
Version 2 of this script is now available.
A list of plugins is now automatically populated on a list and you can enable/disable these via standard Homeseer events.
Removing/adding plugins should have no effect on events set to control other plugins.
Whilst I have not fully resolved the multi-instance plugin issue, I'm happy to work with people to get this resolved.
There is currently full support for multi-instance plugins for:
- Spud Plugins
Comment
-
Hi Jon,
I've been trying v2 of this plugin and see a regular message in the logs:
Code:Script Jon00Plugin.vben is currently running, waiting for it complete before its run again
Thanks
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Hi Al,
I had to use hs.RegisterStatusChangeCB in this new version so that changes in the lists are recorded. You must have a very active system as every call is immediately terminated (under 1ms) unless related to the script.
I'm sure you are aware that the device Scriptname/Scriptfunc has been broken for over a year so I could not use that.
Comment
-
Originally posted by jon00 View PostHi Al,
I had to use hs.RegisterStatusChangeCB in this new version so that changes in the lists are recorded. You must have a very active system as every call is immediately terminated (under 1ms) unless related to the script.
I'm sure you are aware that the device Scriptname/Scriptfunc has been broken for over a year so I could not use that.
Thanks
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Originally posted by jon00 View PostWhen using hs.RegisterStatusChangeCB, it does allow multiple copies to run!
Thanks
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
I have no idea. Only HST can answer that one. Whilst it is annoying, I very much doubt it is putting additional strain on the system. There would not be an issue if the device Scriptname/Scriptfunc bug was fixed
It was discussed here: https://forums.homeseer.com/showthread.php?p=1274443
Comment
-
Problem with enable/disable
Jon
Hi
I installed your enable/disable utility to see if it would help me with a problem I was having with a plugin that was freezing up.
The install was successful , but when I try to disable (or enable) a plugin either directly from the device created or from the event, nothing happens.
The log shows
"Jun-07 5:31:40 AM
*
Device Control
Device: Utility Jon00 Plugin Disable PI to Select Plugin (9) by/from: CAPI Control Handler
but the plugins are not enabled or disabled.
Anything I might be missing?
Any help appreciated
Zsima
Comment
Comment