-
Notifications
You must be signed in to change notification settings - Fork 0
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
Initial 'selection' states #29
Comments
Can you post example of sitemap/item config that has the issue? |
Sure. Note ALL of my modes that use mappings experience this. For example, here is my item for switching my Onkyo AVR's network services:
And corresponding sitemap entry:
|
A work around for this is to create a rule which sets the states, so they are not undefined:
In any case I think Rotini should be able to handle undefined items without crashing :) |
Undefined states are handled generally in the app, it's just mode widget has few non-tested things, so it is fragile. So if there are other widgets that brake with undefined states, do let me know. |
Got you. So far so good - no other problems incurred. Another approach is to persist the states and restore them upon start via db4o.persist like so:
|
@d0t101101 While crash on tap should be obviously fixed, I don't think it should show first option by default. To me, behavior of openhab is confusing, since it was showing me something which wasn't actually true. If no value selected because it is uninitialized, I would want to know about it, rather than think something is selected. |
Fixed 0.2.19 |
Migrating this issue from G+:
I have a variety of 'scene selectors' which could be considered 'mode's in Rotini terms. This is used for house/lighting/security/IP camera modes. For each selection (using mode widget, backed by a number item and related maps), the widget usually shows up 'blank' initially in Rotini (just a '-'), but works fine in HABDroid consistently. Clicking on the empty widgets immediately crashes Rotini. If I switch to HABDroid and set another state for each, Rotini will works fine going forward.
It seems Rotini should assume the first selection if there is no value for the number/selection state available...
The text was updated successfully, but these errors were encountered: