I have a menu field with three options. When I created the device, it was a menu as you'd expect:
- Code: Select all
<Field type="menu" id="p1DaysOn" defaultValue="7">
<Label>Period 1 applies:</Label>
<List>
<Option value="7">All week</Option>
<Option value="5">Weekdays only</Option>
<Option value="2">Weekends only</Option>
</List>
<CallbackMethod>p1DaysCALLBACK</CallbackMethod>
</Field>
- Code: Select all
2020-05-08 11:02:18.552 EnergyLink Debug UiValuesDict : (dict)
p1DaysOn : 7 (string)
p1Start : 06:00 (string)
p2DaysOn : (string)
p2Start : 06:00 (string)
However, I have now changed the field back to menu, but valuesDict is still giving me a List?
- Code: Select all
2020-05-08 11:11:06.940 EnergyLink Debug UiValuesDict : (dict)
p1DaysOn : (list)
Item : 5 (string)
p1Start : 06:00 (string)
p2DaysOn : (list)
Item : 5 (string)
p2Start : 06:00 (string)
stateListOrDisplayStateIdChanged is called on every deviceStartComm() so should it have changed back to a single string value, not a list of strings?
I can delete the device and recreate it as i'm only in design/creation stage at the moment, but wondered if it's something to add to the buglist or whether it's me doing/expecting something wrong?
Peter