python hardware plugin - one instance per device ?!?
Posted: Sunday 02 March 2025 17:35
Hello all,
I already have developped a couple of simple python plugins (very specific, fixed and predifined number of devices), but I'd like to create a more flexible hardware device. A good starting point for me would be to buil a plugin based on pyShelly (I have plenty of those and already have a good knowledge of this library).
Since I coulnd't find a way to provide then store information relative to the devices that would be created through this plugin, here are my questions:
One way to do things would be to have one instance of the plugin for each and every device I want to create.
??? Is this the way to go? ???
It would definitely work, but how efficient would it be? I would have to run several instances, possibly leading to a lot of resources, more than if I could manage everything in the same session.
Any help or advice will be really appreciated. Thank you in advance.
I already have developped a couple of simple python plugins (very specific, fixed and predifined number of devices), but I'd like to create a more flexible hardware device. A good starting point for me would be to buil a plugin based on pyShelly (I have plenty of those and already have a good knowledge of this library).
Since I coulnd't find a way to provide then store information relative to the devices that would be created through this plugin, here are my questions:
One way to do things would be to have one instance of the plugin for each and every device I want to create.
??? Is this the way to go? ???
It would definitely work, but how efficient would it be? I would have to run several instances, possibly leading to a lot of resources, more than if I could manage everything in the same session.
Any help or advice will be really appreciated. Thank you in advance.