My device property UI allow to choose a house code and a device code using popup menus. They define the device properties "houseCode" and "deviceCode".
I would like to set the device property "address" (houseCode+deviceCode) manually, when the device settings UI is closed. This will allow (I think) to display the device address in the corresponding column.
I don't know where and how to do this ...
I tried in validateDeviceConfigUi with something like :
Code: Select all
deviceCode = valuesDict["houseCode"] + valuesDict["deviceCode"]
dev.pluginProps.update({"address":deviceCode})
dev.replacePluginPropsOnServer(dev.pluginProps)