-
-
Notifications
You must be signed in to change notification settings - Fork 460
Semantic Tags: Tweaks to tags #4708
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
Conversation
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
|
Signed-off-by: Andrew Fiddian-Green <[email protected]>
|
@jimtng I have run the script |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
|
What would |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Indeed. And we also have OpenClosed too. I think there should probably be just OpenState (binary) and OpenLevel (analog) that are children of Opening. => WDYT? |
This sounds good.
Should this be deleted? This sounds just like OpenState. Isn't it a new one too? So deleting it shouldn't be a problem? |
Indeed. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
No, OpenState is good. OpenClosed isn't.
This is unfortunately a legacy tag, although since we changed it to Property, it may cause some problems. In any case, I'm OK with LowBattery, but not "LowFullBattery". LowBattery can be assigned to a SwitchItem, when it's ON, it's low battery. But if it was LowFullBattery, it's just awkward. In general I'm trying to say that we should not have "OnestateOppositestate" format. |
|
TwoState is no different to Binary / OpenClosed / HighLow / AutoManual / EnabledDisabled. They describe the possible values, but not what the values mean (ie. what property they describe). As I said, instead of AutoManual, the Item should be tagged with "Mode", and instead of EnabledDisabled, it should be tagged "State" (or Status), Instead of OnOff, it should be tagged Power, and so on. |
So lets change these three as follows..
Note: these three are new to this PR so changing or deleting them would only impact my own PRs. So let us make a quick decision now.. |
Yes, and Enabled shouldn't be a child of Mode. I think it should just stand alone. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
jimtng
left a comment
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.
Thanks! LGTM
|
I have uploaded the as per LGTM schema file to openhab/openhab-website#511 |
It depends on what me mean by screen. If it's "device that generates images", Projector and Television are both subclasses. If it's "the physical thing that images are displayed on", they are not. The difference is that a Television is both types of screens, but with a projector, you have the image generating device (the projector), and the screen the image is on. I don't think one interoperation is necessarily more correct than others (being able to automate the screen itself in a projector+screen setup is fairly common - it can roll out of the ceiling or other cavity, or have masks that are controllable). It was just previously Screen was the parent of Television and Projector, and I had rules that relied on that (when a receiver turns on, turn on the screen in that room, regardless of if it's a television or projector). I also have a motorized screen, which I just don't semantically tag (I have no reason to directly expose it in a UI, or need to generically find it and its properties in rules, because it's 100% controlled by dedicated automation rules).
I'm not sure "Power" is the right word here. The Power property refers to how much power (generally in watts) a device is using. Though maybe it's okay to overload it, since such a property would only ever be paired with the Measurement point, leaving Switch,Power to mean the point that can turn a device on and off, and Status,Power to mean a point you can't control, but indicates if the device is active at the moment based on some other means (such as a hot water heater that is always "on", but is now "heating" because it is below the setpoint temperature. |
|
Any objection to Display being the parent of Television and Projector, and Screen being separate (with a description of Projection Screen, so it's clear that's what is intended)? |
|
@ccutrer / @jimtng just to summarise: I need to have a unanimous proposal from you both on two topics..
I have been dancing back and forwards on various conflicting proposals, it looks like I am wasting my time, so you two please make the decision. Fast. |
|
Yes I agree on Display for the parent of Television and Projector, and add Screen separately. This is good! |
Yes |
|
Sorry for joining the party late. I have not been involved in previous discussions about semantics, and would leave it to the other maintainers to review.
This confuses me. In addition, there might be logical switches. I am not sure if power(ed) is the correct term for those cases. Or would you see this as a mode? |
|
I understand that Power is used in physics and engineering with the unit of Watt. It is used to measure the rate of energy per unit time. Power is also a very common terminology in consumer electronics to label a button which is used to turn something on or off. Here is a photo of an appliance with a power button Many devices / API uses |
|
Apropos Switch Power .. there are still channels where Power is not appropriate e.g. the Zwave binary sensor (where, as you see, I simply don’t declare a Property at all).. |
For such a generic sensor, we don't need to assign any property at all, and leave it to the user to decide what that sensor actually represents for them. |
Indeed. And we will not delete the Power property from the set. It is a separate discussion in other PRs in addons about whether its use therein is appropriate. In some cases it is. And in some cases not. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
|
@ccutrer / @jimtng / @holgerfriedrich see latest commit. Are we done now? |
|
Thanks for the discussion and the reviews! |
|
Phew that was a hard one. But many thanks to you all! |

This PR contains some tweaks to Point and Property tags arising from #4706 and #4668
Signed-off-by: Andrew Fiddian-Green [email protected]