-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[hue] Semantics added to channel types #10977
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT: @lolodomo I had a second look after playing with tags the last few days....
'Control' and 'Light' tags give the locations tabs a number of how many lights are turned ON in that location.. etc.
See this for example and note the bulb icon with a number of how many lights are on in that location...
http://www.pcmus.com/openhab/locations.png
Some of the channels are tagged with these and since I don't own any HUE I am not certain but some I would question like the effect channel. Can the effect be turned ON when the light is actually OFF? I also don't believe it will make any difference tagging the String channels with this. Perhaps err on the side of caution and only tag the ones that control the light actually being ON and OFF, otherwise the light icon may read the wrong number of lights turned on in the locations tab.
@lolodomo - is this ready for being merged? |
No because we have a kind of veto from @kubawolanin regarding this approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because we have a kind of veto from @kubawolanin regarding this approach.
You probably wanted to mention me instead here.
As commented on the other PRs, I would prefer to reduce this to the "obvious" fits.
As @Skinah mentioned above, the tags in this PR might have some unexpected effects to users.
I left some comments below on channels, which I consider problematic.
<state readOnly="true" pattern="%.1f %unit%"/> | ||
</channel-type> | ||
|
||
<channel-type id="light_level" advanced="true"> | ||
<item-type>Number</item-type> | ||
<label>Light Level</label> | ||
<description>Current light level.</description> | ||
<tags> | ||
<tag>Measurement</tag> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer "Measurement" tags to be only used for Numbers with dimension, so that it is clear, what exactly is measured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But what else to use in this case ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following our agreement to only tag what is obvious, I'd vote to not tag it at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this is now removed.
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
I am going to consider review comments. |
Signed-off-by: Laurent Garnier <[email protected]>
f0b95ce
to
bbffb4a
Compare
@kaikreuzer : I updated the PR, remains only one open point to discuss |
Signed-off-by: Laurent Garnier <[email protected]>
@kaikreuzer : last change done |
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <[email protected]>
@kaikreuzer : I am counting 27 bindings defining tags on some of their channels. Maybe we/you could check that they all define tags properly.
|
@lolodomo - would you like code owner (@cweitkamp), or @kaikreuzer to review before merging? It looks good to me now after removing the tags which were not straight-forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
No, I don't think this is necessary, there is now almost nothing changed and Kai already made his comments. |
* [hue] Semantics added to channel types Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
* [hue] Semantics added to channel types Signed-off-by: Laurent Garnier <[email protected]>
* [hue] Semantics added to channel types Signed-off-by: Laurent Garnier <[email protected]>
* [hue] Semantics added to channel types Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
* [hue] Semantics added to channel types Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Laurent Garnier [email protected]