I want to change which device state is shown in column State in the main window.
1. in devices.xml
changed UiDisplayStateId
- Code: Select all
<Device type="custom" id="beacon">
<Name>beacon</Name>
<UiDisplayStateId>displayStatus</UiDisplayStateId>
<ConfigUI>
and added the proper state
- Code: Select all
<States>
<State id="displayStatus">
<ValueType>String</ValueType>
<TriggerLabel>displayStatus</TriggerLabel>
<ControlPageLabel>displayStatus</ControlPageLabel>
</State>
...
</States>
2. added in plugin
- Code: Select all
def deviceStartComm(self):
dev.stateListOrDisplayStateIdChanged()
to force indigo to update state and display refs.
The device states changes as designed, but indigo still shows the old state (Status) in the state column..
Have done edit / save device, restarted indigo, removed/ added device.... still showing the old state.
I am trying to replicate something I am doing in other plugins and it works fine there ,but not in this plugin..
Any idea where I could look? Any method I should / must not call .. ?
Karl
ps posting the code here would not make sense .. it is 13 k lines long