You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2019. It is now read-only.
It would be nice for custom widgets to be able to specify a configuration value type of "thing" that generates a selection list of things (as is possible to do with items).
The text was updated successfully, but these errors were encountered:
Actually not too sure about this.
openHAB has a concept of items so that end user interfaces like HABPanel remain oblivious of the underlying physical side (things) and only see the functional model (items).
That's why HABPanel doesn't know about things and doesn't use them anywhere. Getting the list would also imply calling an additional API.
Modeling every situation in terms of Items isn't always feasible or desirable (hence, for example, the possibility of custom event types).
Things can emit events, so it seems conceivable that you'd want to filter based on a particular thing. Not being able to have a pick list populated with Things means you have to find the thing somewhere else and then copy-paste it into a text field.
Other portions of the OpenHAB infrastructure provide for a configuration context type of "thing", so it seems reasonable from a consistency of functionality standpoint.
In terms of implementation, it involves similar infrastructure as is used for items (actually, it's almost identical with the exception of the data type names).
See my current implementation of this feature: hww3@401c8e8
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be nice for custom widgets to be able to specify a configuration value type of "thing" that generates a selection list of things (as is possible to do with items).
The text was updated successfully, but these errors were encountered: