Prepopulate setup defaults

Python and python framework

Moderator: leecollings

Post Reply
brjhaverkamp
Posts: 56
Joined: Wednesday 06 December 2017 16:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Prepopulate setup defaults

Post by brjhaverkamp »

Hi all,

Hopefully someone knows how, or can tell me this is currenrtly not doable.
I would like to set the defaults in the plugin configuration params.
For my stove, I can do a discover call on the network to get back the serial number and IP address.
These are 2 of the 3 params that need to be set in the configuration screen.
Is there a way to do the discover call first, and prepopulate the default values with those?
And if so how?

Regards,

Bert
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Prepopulate setup defaults

Post by waltervl »

There is no python code run on plugin configuration so I think it is not possible. Python is only run on the moment you click on add or update.

You can also not use the parameters or make them optional and let the plugin find the stove after starting the plugin. If nothing found then I do not know what happens :)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest