- Code: Select all
<?xml version="1.0"?>
<MenuItems>
<MenuItem id="menu1">
<Name>Configure SynchroLinc Device</Name>
<ConfigUI>
<Field id="insteon_address" type="menu">
<Label>SynchroLinc Device</Label>
<List class="self" method="synchrolincDeviceList"/>
</Field>
<Field id="trigger_watts" type="textfield" defaultValue="">
<Label>Trigger Watts</Label>
</Field>
<Field id="threshold_watts" type="textfield" defaultValue="">
<Label>Threshold Watts</Label>
</Field>
<Field id="delay_seconds" type="textfield" defaultValue="">
<Label>Delay Seconds:</Label>
</Field>
<Field id="label1" type="label">
<Label>
Trigger Watts: 0-1800
Threshold Watts: 0-127.5
Delay Secs: .15 - 38.25
</Label>
</Field>
<Field id="btn_fetch" type="button" tooltip="Get current values">
<Title>Fetch</Title>
<CallbackMethod>actionFetch</CallbackMethod>
</Field>
<Field id="btn_store" type="button" tooltip="Get current values">
<Title>Store</Title>
<CallbackMethod>actionStore</CallbackMethod>
</Field>
<Field id="simpleSeparator1" type="separator"/>
<Field type="checkbox" id="showDebugInfo">
<Label>Enable debugging:</Label>
<Description></Description>
</Field>
</ConfigUI>
</MenuItem>
</MenuItems>
In the method actionGet, I am doing some validation, and trying to get errors back to the UI in the event there *are* errors. However, when I try to return (False, errorsDict, valuesDict), I get:
- Code: Select all
<type 'exceptions.TypeError'>:No registered converter was able to extract a C++ reference to type CXmlDict from this Python object of type bool
I tried to just return the errors dictionary (of type indigo.Dict()), but I'm not seeing any errors on the dialog:
- Code: Select all
errors = indigo.Dict()
errors['insteon_address'] = "no address specified"
return errors
Any help or pointers?
Thank you!