Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene widget using Switch items displays as Invalid config #128

Closed
qfluxlab opened this issue Jun 13, 2016 · 5 comments
Closed

Scene widget using Switch items displays as Invalid config #128

qfluxlab opened this issue Jun 13, 2016 · 5 comments
Labels

Comments

@qfluxlab
Copy link

qfluxlab commented Jun 13, 2016

Scene widget with below config displays as invalid with the message "At least 2 scenes are required for this size." I tried more switches up to 5 with no luck. It works fine using Selection item instead of switches.

App: 0.7.58
Android: 5.1.1

Switch  SW_DI_Welcome_Home      (gPersist)      [ "Switchable" ]
Switch  SW_DI_Goodbye           (gPersist)      [ "Switchable" ]

Frame label="House Mode {widget:scene}" {
    Switch item=SW_DI_Welcome_Home label="{icon:house}"
    Switch item=SW_DI_Goodbye label="{icon:door}"
}
@igorgladkov
Copy link
Owner

@dynostatic is that your exact items config? Because brackets in [ "Switchable" ] would make it an invalid configuration, so those items might be created and therefore wouldn't be available in the client.

@qfluxlab
Copy link
Author

qfluxlab commented Jun 18, 2016

@igorgladkov I wondered about those tags causing a problem in the app, so I did try without them. I still get the same invalid config message. I restarted OH to make sure everything was initialized correctly after removing them.

The "Switchable" tags are used by the OH2 Hue Emulation binding. The items are created and working fine as switches in basic ui.

@igorgladkov
Copy link
Owner

@dynostatic I didn't realize that you are using OH2, because I was checking it on OH, which had it as syntax error. Will test on OH2 then.

@qfluxlab
Copy link
Author

qfluxlab commented Jul 8, 2016

@igorgladkov I should have mentioned I was on OH2. Likely that is the problem. I ended up created a string item linked to my switches with rules to use in the widget for now until this is working.

@igorgladkov
Copy link
Owner

Closing since it would not be applicable to the new beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants