This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 782
Improve ThingHandler API to allow easy addition of Channels #4950
Labels
Comments
Merged
Another |
sjsf
pushed a commit
to sjsf/smarthome
that referenced
this issue
Feb 2, 2018
...for any given ChannelTypeUID in the ThingHandlerCallback and in the BaseThingHandler corrrespondingly. fixes eclipse-archived#4950 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
sjsf
pushed a commit
to sjsf/smarthome
that referenced
this issue
Feb 2, 2018
...for any given ChannelTypeUID in the ThingHandlerCallback and in the BaseThingHandler correspondingly. fixes eclipse-archived#4950 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
sjsf
pushed a commit
to sjsf/smarthome
that referenced
this issue
Feb 6, 2018
...for any given ChannelTypeUID in the ThingHandlerCallback and in the BaseThingHandler correspondingly. fixes eclipse-archived#4950 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
sjsf
pushed a commit
to sjsf/smarthome
that referenced
this issue
Feb 6, 2018
...for any given ChannelTypeUID in the ThingHandlerCallback and in the BaseThingHandler correspondingly. fixes eclipse-archived#4950 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
sjsf
pushed a commit
to sjsf/smarthome
that referenced
this issue
Feb 9, 2018
...for any given ChannelTypeUID in the ThingHandlerCallback and in the BaseThingHandler correspondingly. fixes eclipse-archived#4950 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
kaikreuzer
pushed a commit
that referenced
this issue
Mar 2, 2018
* Provide preconfigured ChannelBuilders ...for any given ChannelTypeUID in the ThingHandlerCallback and in the BaseThingHandler correspondingly. fixes #4950 Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In our thing modelling FAQs, we suggest as (4) to dynamically add channels to a Thing within the handler.
As discussed here, this is currently a bit cumbersome, though, as there isn't an easy way to construct a channel from a channel type, which means that the best code I could come up with is this.
We should simplify this either by improving the ChannelBuilder or possibly by directly supporting it in the ThingBuilder (not sure yet, what is the better option).
The text was updated successfully, but these errors were encountered: