changing filed type in pluginConfig, keeps old type

Posted on
Mon Feb 12, 2018 11:48 pm
kw123 offline
User avatar
Posts: 5151
Joined: May 12, 2013
Location: dallas, tx

changing filed type in pluginConfig, keeps old type

1. have a check box field with true / false

2. changing the checkbox field to a menu field

It looks to me as if: the newly defined field still thinks it is a true/false field and does not remember menu items selected when config is saved and reopened.

had:
Code: Select all
    <Field    id="unifiCloudKeyMode"       type="checkbox"  defaultValue="true"            > <Label>.. use controler info:</Label>
    </Field>

changed to:
Code: Select all
    <Field    id="unifiCloudKeyMode"       type="menu"  defaultValue="ONreportsOnly"            > <Label>.. use controler info:</Label>
        <List>
            <Option value="ON"             >ON </Option>
            <Option value="off"            >off</Option>
            <Option value="ONreportsOnly"  >ON, reports Only</Option>
        </List>
    </Field>

after changing the name to a new filed name everything works.

Karl

Posted on
Tue Feb 13, 2018 8:45 am
Colorado4Wheeler offline
User avatar
Posts: 1756
Joined: Jul 20, 2009
Location: Colorado

Re: changing filed type in pluginConfig, keeps old type

I think you are dealing with the UI issue that requires you to quit the client and restart it to get that change. I run into that every once in a long while and I know it has come up relatively recently in the forums.

My Modest Contributions to Indigo:

Homebridge Buddy | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser

Check Them Out Here


ass#toggle is supported by Indigo. Look it up.

Posted on
Tue Feb 13, 2018 11:41 am
matt (support) offline
Site Admin
User avatar
Posts: 18187
Joined: Jan 27, 2003
Location: Texas

Re: changing filed type in pluginConfig, keeps old type

Yes, I think C4W is right. This is a caching problem at the Indigo Client level so a client restart should get it working.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest