- Code: Select all
<ConfigUI refreshCallbackMethod='refreshDeviceConfigUi'>
...
</ConfigUI>
- Code: Select all
<ConfigUI>
<refreshCallbackMethod>refreshDeviceConfigUi</refreshCallbackMethod>
...
</ConfigUI>
<ConfigUI refreshCallbackMethod='refreshDeviceConfigUi'>
...
</ConfigUI>
<ConfigUI>
<refreshCallbackMethod>refreshDeviceConfigUi</refreshCallbackMethod>
...
</ConfigUI>
def getDeviceConfigUiValues(self, pluginProps, typeId, devId):
valuesDict = pluginProps
errorMsgDict = indigo.Dict()
valuesDict['refreshCallbackMethod'] = 'nameOfYourRfreshMethod'
return (valuesDict, errorMsgDict)
def getDeviceFactoryUiValues(self, devIdList):
valuesDict = indigo.Dict()
valuesDict['refreshCallbackMethod'] = 'nameOfYourRfreshMethod'
errorMsgDict = indigo.Dict()
return (valuesDict, errorMsgDict)
matt (support) wrote:It wasn't very clear on that other forum thread so here is an example. Although it might be possible to do via XML, it is easier to just handle by overriding one of these methods (use the first one unless you are using the device factory UI option): And note you can conditionalize it based on the passed in device typeId if you need.
<ConfigUI>
<Field id="refreshCallbackMethod" type="textfield" hidden="true" defaultValue="refreshDeviceConfigUi"/>
....
</ConfigUI>
Users browsing this forum: No registered users and 0 guests