openhab-docs/configuration/items.md

757 lines
50 KiB
Markdown
Raw Normal View History

---
layout: documentation
title: Items
---
{% include base.html %}
# Items
In openHAB Items represent all properties and capabilities of the users home automation.
While a device or service might be quite specific, Items are unified substitutions inside the openHAB world.
Items can be Strings, Numbers, Switches or one of a few other basic [Item types](#type).
A programmer can compare Item types with base variable data types of a programming language.
A unique feature of openHAB Items is the ability to connect them to the outside world via [Bindings](/addons/#binding).
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
An Item does not simply store information that is set by software (e.g., `OFF`, 3.141 or "No Error"); the information stored by an Item may also be set by actions that take place in your home.
But let's not get ahead of ourselves.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The rest of this page contains details regarding Items and is structured as follows:
{::options toc_levels="2..4"/}
- TOC
{:toc}
## Introduction
Items are basic data types and have a state which can be read from, or written to.
Items can be linked to a [Binding](/addons/#binding) channel for interaction with the outside world.
For example, an Item bound to a sensor receives updated sensor readings and an Item linked to a light's dimmer channel can set the brightness of the light bulb.
There are two methods for defining Items:
1. Through UI
1. Through text `.items` files located in the `$OPENHAB_CONF/items` folder.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Files here must have the extension `.items`; you may create as many `.items` files as needed.
However, each Item must be unique across all `.items` files.
Refer to the [installation docs]({{base}}/installation/index.html) to determine your specific installation's folder structure.
Generally 1.x version Bindings can only be bound to Items through `.items` files.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
2.x Bindings may be configured using either method described above.
**Assumptions for UI:**
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The examples below assume that the user is using a text editor to create a `.items` file.
While the way of defining an Item using the graphical, interactive UI is different, the elements and the nature of an Item definition are identical using either method.
**Editor Recommendation:**
It's recommended to edit `.items` files using one of the [openHAB supporting editors]({{base}}/configuration/editors.html).
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Doing so will provide you with full IDE support including features such as syntax checking, and context assistance.
{: #syntax}
## Item Definition and Syntax
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Items are defined using the following syntax:
```java
itemtype itemname "labeltext [stateformat]" <iconname> (group1, group2, ...) ["tag1", "tag2", ...] {bindingconfig}
```
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Fields must be entered in the order shown
2018-09-04 07:46:50 +00:00
- `itemtype` and `itemname` are mandatory
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- All other fields are optional
- Fields may be separated by one or more spaces, or tabs
- An Item definition may span multiple lines
**Examples:**
```java
Switch Kitchen_Light "Kitchen Light" {channel="mqtt:topic:..." }
String Bedroom_Sonos_CurrentTitle "Title [%s]" (gBedRoom) {channel="sonos:..."}
2019-09-09 19:59:54 +00:00
Number Bathroom_WashingMachine_Power "Power [%.0f W]" <energy> (gPower) {channel="homematic:..."}
Number Livingroom_Temperature "Temperature [%.1f °C]" <temperature> (gTemperature, gLivingroom) ["TargetTemperature"] {knx="1/0/15+0/0/15"}
```
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The last example above defines an Item with the following fields:
- Item [type](#type) `Number`
- Item [name](#name) `Livingroom_Temperature`
- Item [label](#label) "Temperature"
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Item [state formatted](#state-presentation) to display temperature in Celsius to one-tenth of a degree - for example, "21.5 °C"
- Item [icon](#icons) with the name `temperature`
- Item belongs to [groups](#groups) `gTemperature` and `gLivingroom` (definition not shown in the example)
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Item is [tagged](#tags) as a thermostat with the ability to set a target temperature ("TargetTemperature")
- Item is [bound to](/addons/#binding) the openHAB Binding `knx` with binding specific settings ("1/0/15+0/0/15")
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The remainder of this article provides additional information regarding Item definition fields.
{: #type}
### Type
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The Item type defines what kind of state can be stored in that Item and which commands the Item will accept.
Item types are comparable to basic variable data types in programming languages.
Each Item type has been optimized for a particular kind of component in your smart home.
This optimization is reflected in the data and command types.
Available Item types are:
| Type Name | Description | Command Types |
|---------------|-----------------------------------------------------------------------------------------------|--------------------------------------------|
| Color | Color information (RGB) | OnOff, IncreaseDecrease, Percent, HSB |
| Contact | Status of contacts, e.g. door/window contacts. Does not accept commands, only status updates. | OpenClosed |
| DateTime | Stores date and time | - |
| Dimmer | Percentage value for dimmers | OnOff, IncreaseDecrease, Percent |
| Group | Item to nest other items / collect them in groups | - |
| Image | Binary data of an image | - |
| Location | GPS coordinates | Point |
| Number | Values in number format | Decimal |
| Player | Allows control of players (e.g. audio players) | PlayPause, NextPrevious, RewindFastforward |
| Rollershutter | Roller shutter Item, typically used for blinds | UpDown, StopMove, Percent |
| String | Stores texts | String |
| Switch | Switch Item, used for anything that needs to be switched ON and OFF | OnOff |
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
More details about all of the available Item types and their commands are available under Concepts, see:
[Item Types Overview]({{base}}/concepts/items.html)
To learn about the technical internals of the individual Item types, please refer to:
[Javadoc on Generic Item and its subclasses](https://www.openhab.org/javadoc/latest/org/openhab/core/items/genericitem)
<!-- TODO: Random content. Doesn't make sense here. Might be changed to be a more general example for diverse Items
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Example:
**Dimmer vs. Switch:**
While a Dimmer Item can accept either On/Off, Increase/Decrease, or Percent updates or command, a Dimmer Item stores its state as a Percent value.
See the following example:
```java
//demo.items
Dimmer Office_Light "Dimmer [%d %%]" {milight="bridge01;3;brightness"}
```
```javascript
//demo.sitemap
Switch item=Office_Light
Slider item=Office_Light
```
When the Switch widget is used, it sends ON or OFF commands to the Item which are mapped to 100% and 0%, respectively.
When the Slider widget is used, it sends Percent commands (values between 0 and 100) to the Item, which are used as the Item's state.
In the example above, if you move the Slider widget to 60%, move the Switch to OFF, and finally move the switch to ON, the Item's state will be 100%.
-->
{: #name}
### Name
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The Item name is used to uniquely identify an Item.
The name must be unique across all `.items` files in your openHAB configuration.
The only characters permitted in an Item name are letters, numbers and the underscore character.
Names must not begin with numbers.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Spaces and special characters are not permitted.
A good Item name is self-explanatory and hints at its Item type and interaction options.
A good hierarchical arrangement allows you to create common-sense groupings of Items.
Names may be organized by function, and/or location.
Users are advised to establish and follow a consistent naming scheme for Items.
You may wish to think of a logical naming hierarchy that makes sense to you and apply that consistently in your openHAB installation.
Having a well thought out naming scheme can be especially important as your installation grows.
An Item naming scheme with a physical or logical top-down will ensure you can easily identify the function or purpose of the Item, especially over time.
The following naming style guide is recommended:
- Words build a physical or logical hierarchy
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Every word of the Item name starts with an uppercase letter
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Words should be separated by an underscore character, except for words that logically belong together
- Names that reoccur frequently, such as the names of rooms or appliances, may be abbreviated to reduce overall name length.
(Example: Bathroom = BR)
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Examples:
| Item Name | Interpretation (assumed Item type, example value) |
|-----------------------------------|---------------------------------------------------------------------------------------------------------|
| "`Livingroom_CeilingLight`" | Living room light (Switch, e.g. ON) |
| "`Livingroom_CeilingLight_Color`" | Living room light color (Color, e.g. warm white) |
2019-09-09 19:59:54 +00:00
| "`GF_BR_WashingMachine_Power`" | Electric power consumed by the washing machine located in the ground floor bathroom (Number, e.g. 100W) |
| "`Lighting_Scene`" | Overall lighting scene of the house (String, e.g. Party) |
| "`Presence_John_Smartphone`" | An Item indicating if John is home or not, based on smartphone detection (Switch, e.g. Offline) |
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
[Group](#groups) is a special Item type that may be used to nest or combine Items.
Users are encouraged to apply the style guide above to group names as well as Item names.
Two naming schemes are established in the community for Group names:
1. Use a plural word form (e.g. Batteries) where possible.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Otherwise the word "Group" may be appended for clarity.
1. Prepend a lowercase "g" to the name (e.g. gBattery)
| Group Name | Interpretation |
|-------------------------------------------|-----------------------------------------------------------------------|
| "`Batteries`" or "`gBattery`" | Group combining the states of all battery Items |
| "`Maintenance_Group`" or "`gMaintenance`" | Group containing all maintenance-related Items |
| "`Livingroom_Lights`" or "`gLR_Light`" | Group containing all light Items belonging to the living room |
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
| "`Livingroom`" or "`gLR`" | Group for *all* Items (including lights) belonging to the living room |
{: #label}
### Label
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Label text is used to describe an Item in a human-readable way.
Graphical UIs will display the label text when the Item is included, e.g. in [Basic UI]({{base}}/configuration/ui/basic.html) in a [Sitemap]({{base}}/configuration/sitemaps.html) definition.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Some I/O services (e.g. the Amazon Alexa skill) also use the label to match an external voice command to an Item.
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
In textual configurations the label, in quotation marks, appears next to the optional [state presentation](#state-presentation) field in square brackets (see below).
2018-10-20 07:31:40 +00:00
The label for the Item in the following example is "Temperature" and the optional state representation is set to be displayed, e.g. as "23.9 °C":
```java
Number Livingroom_Temperature "Temperature [%.1f °C]"
```
Channel labels can be overwritten by Item definitions and Item labels can be overwritten in [Sitemaps]({{base}}/configuration/sitemaps.html#element-types).
{: #state}
### State
The state of an Item depends on the Item type, the Channel bound to the Item, and internal or external events.
A analogy can be drawn between the state of an Item and the value of a variable in a computer program.
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
{: #item-state}
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
#### Item State
This section provides information about what a user can expect regarding the behavior of the state of an Item.
- Items are created with a state of `NULL`
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
- Operations in openHAB such as a user interacting with the Item using the Basic UI, or a Binding updating the state of an Item will change the state of the Item
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
- An Item's state may also be set through a Binding which may be reacting to changes in the real world
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
- A Binding may set the state of an Item to `UNDEF` if it looses communications with a Thing (for example, a Z-wave doorbell with a dead battery).
The Binding may also set the state to `UNDEF` if an error exists in the binding configuration, or under other conditions
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
*N.B.* Many openHAB users find that it can be very useful to use [Persistence](/addons/#persistence) and [System started]({{base}}/configuration/rules-dsl.html#system-based-triggers) rules so that their systems behaves in a predictable way after an openHAB restart.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
{: #command-vs-status}
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
#### Command vs. Status
Users should bear in mind the difference between an Item used to send a command to a Thing, and an Item that reflects the status of a real-world Thing in the UI.
This distinction may seem obvious, but it can be a little confusing when an Item appears not to reflect the correct status of a Thing.
For example, let's say you have a Switch Item that is used to turn on a light.
You insert this Item into a [sitemap]({{base}}/configuration/sitemaps).
You call up the sitemap and switch on the light using the UI.
The switch icon changes from red to green, but you notice that the light does not turn on.
What happened?
Perhaps the Switch physical device is faulty or perhaps the device lost communications with your network.
In any case, the UI performed correctly - it reflected the fact that you sent a command to the Switch Item.
What the UI did not do is convey the status of the device being switched.
Of course, this is the correct.
As of this point, you do not have any Item in your sitemap that would do this.
If it is critical that you know that the light came on, you could install a sensor that monitors light level.
You could then, through the appropriate Binding, reflect light level changes through a Thing to an Item.
Then you add the light-level Item to your UI.
Now when you send the Switch Item command, and you see a corresponding increase in light level in the room, you know for sure that your command has been received and acted upon, because you have a return status Item in your UI.
{: #state-presentation}
#### State Presentation
The Item definition determines the Item's textual state presentation, e.g., regarding formatting, decimal places, unit display and more.
The state presentation is part of the Item label definition and contained inside square brackets.
The state presentation for the Item in the following example is "`%.1f °C`":
```java
Number Livingroom_Temperature "Temperature [%.1f °C]"
```
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
If no state presentation and no square brackets are given, the Item will not provide a textual presentation of its internal state (i.e. in UIs no state is shown).
This is often meaningful when an Item is presented by a non-textual UI elements like a switch or a diagram.
Formatting of the presentation is done applying [Java formatter class syntax](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Formatter.html#syntax).
If square brackets are given, the leading `%` and the trailing formatter conversion are mandatory.
Free text, like a unit, can be added before or after the formatter string.
A few examples are given below:
```java
Number Livingroom_Temperature "Temperature [%.1f °C]" // e.g. "23.5 °C"
String Livingroom_TV_Channel "Now Playing [%s]" // e.g. "Lorem ipsum"
DateTime Livingroom_TV_LastUpdate "Last Update [%1$ta %1$tR]" // e.g. "Sun 15:26"
Number Livingroom_Clock_Battery "Battery Charge [%d %%]" // e.g. "50 %"
Location My_Location "My Location [%2$s°N %3$s°E %1$sm]" // e.g. "49.26°N 123.19°E 0m"
```
{: #state-transformation}
#### State Transformation
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Transformations can be used in the state part of an Item, to translate the raw state of an Item into another language, or to convert technical values into human readable information.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
In the example below, the entry `MAP(window_esp.map)` causes the output of the `Contact` Item to be translated from "CLOSED", to the Spanish "cerrado":
```java
Contact Livingroom_Window "Ventana del salón [MAP(window_esp.map):%s]"
```
Please refer to the article on [Transformations](/docs/configuration/transformations.html) for more usage details and a list of available transformation services.
{: #icons}
### Icons
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The icon name is used by openHAB to select the image to display next to an Item name when using one of openHAB's UIs, e.g. Basic UI.
The icon name appears between angle brackets "&lt;&gt;".
In the example below, the "switch" icon has been selected:
```java
Switch Livingroom_Light "Livingroom Ceiling Light" <switch>
```
openHAB provides a set of [classic icons](/docs/configuration/iconsets/classic/) by default.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Users may add their own icons in either `png` or `svg` format in the openHAB icons configuration folder, `$OPENHAB_CONF/icons/classic/`.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The following guidelines apply to user-added icon files:
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Only `png` or `svg` file formats may be used
- Icon filenames may include lowercase letters, numbers and underscores (`_`)
- Hyphens (`-`) are reserved for [Dynamic Icons](#dynamic-icons)
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- Example filenames:
- Good: `myswitch.svg`, `power_meter.png`, `tuer23.svg`
- Bad: `MySwitch.svg`, `power-meter.png`, `tür23.svg`
**Bitmaps or Vector Graphics:**
openHAB can work with either Bitmap (`png`) or Vector (`svg`) icon files.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The format should match the display capabilities of the user interfaces in use (e.g. Basic UI).
It is thereby important to decide on one format beforehand; vector graphics are recommended.
The setting can be changed via UI for most user interfaces.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Please check the user interface documentation if in doubt.
Note that image files with the wrong file ending will be ignored.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Users may substitute their own icon for an icon from the default icon set by placing a file in the `$OPENHAB_CONF/icons/classic/` folder with the same filename as the name of the icon being substituted.
{: #icons-dynamic}
#### Dynamic Icons
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Some icons are dynamically selected by openHAB depending on the Item's state.
For example, a "switch" icon may appear to be green when the Item is "ON" and red when the item is "OFF.
Behind the scenes, openHAB is actually selecting two different icon files depending upon the Item state - `switch-on` or `switch-off`.
A third default icon file, `switch`, is required as well.
This icon file matches when none of the other icon files match the Item state (e.g. when the Item is in an undefined state).
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Dynamic icon filenames follow the pattern below:
```perl
<name>-<state>.<extension>
```
- `<name>` - the name of the icon set
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- `-<state>` - the Item state the icon maps to (e.g. "ON" or "OFF", "OPEN" or "CLOSED")
- `<extension>` - bitmap (`png`) or vector graphic (`svg`) icon file extension ([see above](#icons))
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Dynamic icon sets may consist of as many state-specific icon files as needed.
Each set must meet the following criteria:
- A default icon is mandatory.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The default icon filename is the name of the icon without a hyphen or state (e.g. `switch.svg`)
- Icon filenames must follow the naming restrictions given for [icons](#icons) above
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
- The state name must reflect the Item's raw state.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
[Transformations](#state-transformation) applied in the state presentation definition of the Item have no influence on icon selection.
- The state portion of the icon name must be in lowercase letters
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
**Example:**
The user defines the "Livingroom_Light" and "Livingroom_Light_Connection" Items:
```java
Switch Livingroom_Light "Livingroom Ceiling Light" <myswitch>
String Livingroom_Light_Connection "Livingroom Ceiling Light [MAP(error.map):%s]" <myerror>
```
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
On the filesystem, the following icon files are provided by the user:
| File name | Description |
|--------------------|------------------------------------------------------------------|
| `myswitch-off.svg` | Matches `OFF` or "off" state |
| `myswitch-on.svg` | Matches `ON` or "on" state |
| `myswitch.svg` | Default icon, used when no matching icon is found (e.g. `UNDEF`) |
| File name | Description |
|------------------------|--------------------------------------------------------------------|
| `myerror-no_fault.svg` | Matches `NO_FAULT` state |
| `myerror.svg` | Default icon, used when Item in other state (e.g. `CONNECT_ERROR`) |
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Take note, that the Transformation used in the `Livingroom_Light_Connection` Item doesn't effect the needed state specific icons - the icon selection considers "myerror", not the contents of the `error.map` file.
**Number State Matching Rule:**
For Number Items the equal or next lowest state icon that can be found will be used.
The default icon will be used for negative numbers, or above 100 i.e. the available filename range is icon-0 to icon-99 only.
Dimmer type Items work in the same way, being limited to 0-100 anyway.
For a dimmable light (0-100%), you might provide icons as in the example:
| File name | Description |
|-------------------|------------------------------------------------------|
| `mydimmer.svg` | Default icon (used in undefined states) |
| `mydimmer-0.svg` | Matches the turned off light (0%) |
| `mydimmer-1.svg` | Matches any dimmed light between 1% up to 74% |
| `mydimmer-75.svg` | Matches the bright light state from 75% to full 100% |
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Just as with regular icons, user-defined dynamic icon sets may be configured via the custom icons folder `$OPENHAB_CONF/icons/classic/`.
{: #groups}
### Groups
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The Group is a special Item type that can be used to define a category or collection into which you can combine other Items or Groups.
An Item may be put into one or more groups, and groups may be nested inside other groups.
The general syntax for Group Items is as follows:
```java
Group groupname ["labeltext"] [<iconname>] [(group1, group2, ...)]
```
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The Group item is commonly used to define hierarchies of Items from different perspectives.
For example:
- Location-oriented or physical perspective:
- Floors in your house → Rooms on that floor → An appliance in that room...
- Functional or logical perspective:
- Maintenance Group → All battery states → Individual battery states in percentage
- Further examples: all lights, all room temperatures, combined power consumption
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
These relationships can be exploited in [Sitemaps]({{base}}/configuration/sitemaps.html) or in [automation rules]({{base}}/configuration/rules-dsl.html) to navigate through the hierarchically organized Items or to perform computations and updates on subsets of similar Items.
**Example:**
```java
// Overarching group
Group House
// Location perspective
Group GroundFloor (House)
Group Livingroom (GroundFloor)
// Functional perspective
Group Sensors (House)
Group Temperatures (Sensors)
// Example Item
Number Livingroom_Temperature "Temperature [%.1f °C]" (Livingroom, Temperatures)
```
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The example shows an Item which stores the temperature of the living room called `Livingroom_Temperature`.
From a **location perspective**, you may have a group called `Livingroom`.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
When you add `Livingroom_Temperature` to the `Livingroom` group, `Livingroom_Temperature` is automatically part of the `GroundFloor` and `House` groups.
This is because `Livingroom` is a member of the `GroundFloor` group, and `GroundFloor` is a member of the `House` group.
From a **functional perspective**, the Living room temperature can also be seen as one of many temperatures in the automation setup.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Therefore the addition of `Livingroom_Temperature` to a functional group called `Temperatures`, which itself belongs to the `Sensors` group, seems reasonable.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Using nested group hierarchies such as these allows a rule to iterate through all sensors on the ground floor for maintenance actions, for example.
Because of the hierarchical structure of your group items, the rule will be clean and short.
Additionally, the rule will not need to be modified when a new Item is added to the `Temperatures` group.
{: #group-type}
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
### Derive Group State from Member Items
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
As you are now aware, an Item can have a state (e.g. "ON", "OFF").
A Group Item can also have a state.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The Group's state is determined by the state of all its Items, and the aggregation function specified in the group definition.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
The general syntax for groups with a specific item type and aggregation function is:
```java
Group[:itemtype[:function]] groupname ["labeltext"] [<iconname>] [(group1, group2, ...)]
```
- If the aggregation function is omitted, the function `EQUALITY` will be used.
- If the aggregation function and `itemtype` are omitted, no group state will be aggregated from member Items.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Group state aggregation functions can be any of the following:
| | Function | Parameters | Base Item | Description | |
|---|----------------------------|-------------------------------|---------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| | `EQUALITY` | - | \<all\> | Default if no function is specified. Sets the state of the members if all have equal state. Otherwise `UNDEF` is set. In the Item DSL `EQUALITY` is the default and may be omitted. | |
| | `AND`, `OR`, `NAND`, `NOR` | <activeState>, <passiveState> | \<all\> (must match active & passive state) | [Boolean](https://en.wikipedia.org/wiki/Boolean_algebra) operation. Sets the \<activeState\>, if the members state \<activeState\> evaluates to `true` under the boolean term. Otherwise the \<passiveState\> is set. | |
| | `SUM`, `AVG`, `MIN`, `MAX` | - | Number | [Arithmetic](https://en.wikipedia.org/wiki/Arithmetic) operation. Sets the state according to the arithmetic function over all members states. | |
| | `COUNT` | <regular expression> | Number | Sets the state to the number of members matching the given regular expression with their states. | |
| | `LATEST`, `EARLIEST` | - | DateTime | Sets the state to the latest/earliest date from all members states | |
Boolean group state functions additionally return a number representing the count of member Items of value 'value1' (see example below).
Because the group state is an aggregation of multiple Item states, not every Item state change results in a change of the group state.
Note that aggregation functions can only be used on compatible Item types.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Incompatible Item types within a Group may result in the invalid aggregation result `UNDEF`.
**Examples:**
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
Examples for derived states on Group Items when declared in the Item DSL:
```java
Group:Number Lights "Active Lights [%d]" // e.g. "2"
Group:Switch:OR(ON,OFF) Lights "Active Lights [%d]" // e.g. ON and "2"
Group:Switch:AND(ON,OFF) Lights "Active Lights [%d]" // e.g. ON and "2"
Group:Number:AVG Temperatures "All Room Temperatures [%.1f °C]" // e.g. "21.3 °C"
Group:DateTime:EARLIEST LatestUpdate "Latest Update [%1$tY.%1$tm.%1$tY %1$tH:%1$tM:%1$tS]"
Group:DateTime:LATEST LastSeen "Last Seen [%1$tY.%1$tm.%1$tY %1$tH:%1$tM:%1$tS]"
Group:String:COUNT("OFFLINE") OfflineDevices "Offline Devices [%d]" // e.g. "2"
```
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
The first three examples above compute the number of active lights and store them as group state.
However, the second group is of type switch and has an aggregation function of `OR`.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
This means that the state of the group will be `ON` as soon as any of the member lights are turned on.
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
The third uses `AND` and sets the Group state to `ON` if all of its members have the state `ON`, `OFF` if any of the Group members has a different state than `ON`.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Groups do not only aggregate information from individual member Items, they can also accept commands.
Sending a command to a Group causes the command to be sent to all Group members.
An example of this is shown by the second group above; sending a single `ON` or `OFF` command to that group turns all lights in the group on or off.
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
The fourth example computes the average temperature of all room temperature Items in the group.
Assuming we have a Group containing three timestamps: `now().minusDays(10)`, `now()` and `now().plusSeconds(30)`.
The `EARLIEST` function returns `now().minusDays(10)`, the `LATEST` function returns `now().plusSeconds(30)`.
The last Group counts all members of it matching the given regular expression, here any character or state (simply counts all members).
{: #tags}
### Tags
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
Tags added to an Item definition allow a user to characterize the specific nature of the Item beyond its basic Item type.
Tags can then be used by add-ons to interact with Items in context-sensitive ways.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Example:
A Light in a typical home setup can be represented by a Switch, a Dimmer or a Color Item.
To be able to interact with the light device via a natural voice command, for example, the fact that the Item is a light can be established by adding the "Lighting" tag as shown below.
```java
Switch Livingroom_Light "Livingroom Ceiling Light" ["Lighting"]
```
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Tagging is a new feature and only a few I/O add-ons have implemented it.
The easiest way to determine if tags have been implemented in a specific add-on is to see if the add-on documentation explicitly discusses their usage.
Tags will be ignored if no Items in the openHAB installation support it.
See the [Hue Emulation Service](/addons/integrations/hueemulation/) or [HomeKit Add-on](/addons/integrations/homekit/) documentation for more details.
{: #binding}
### Binding Configuration
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
One of the greatest strengths of an openHAB automation system is the sheer number of devices you can interact with.
See "[currently available Bindings](/addons/#binding)" for a list of available Bindings.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
This capability of interacting with real-world things is enabled through the association of Bindings with Items.
Once an Item is associated with a Binding, the state of one aspect of a device is reflected in openHAB (e.g., you can see if a light is on or off in one of the user interfaces).
Additionally, you have the opportunity to interact with a device through its Items, if interaction is supported for that aspect of the device (e.g., you can command the light to turn ON or turn OFF).
The Binding of an Item is given in the last part of the Item definition between curly brackets e.g. `{channel="..."}` in the example below:
[Items] Add section on Item state, fixes #507 (#515) * Add Section on Item State; fixes #507 Propose to add a section on Item State to the documentation on Items to address #507. Adding an Item state diagram would be very useful. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Make additions visible in GitHub "View" mode Strange - adding the TODO line caused the text below to not be visible on GitHub. Removing it. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct text formatting so that each sentence is on one line The Item State section has been reformatted so that each sentence is on its own line. This seems to be the norm for line formatting. Inserted a TODO regarding generating a state diagram. * Remove TODO note The TODO note about adding a state diagram has been removed - it seems to cause the entire new Item State section to disappear - at least in GitHub 'View' mode. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Correct links to other relevant articles Links were incorrect. This commit resolves the problem. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Incorporate "Restoring State" info at end of items.md into this section I removed the text at the end of the items.md file related to restoring state. Incorporated them into this new section. * Address comments from @ThomDietrich (first round) All comments received from @ThomDietrich's first round have been addressed. Ran linter and reformatted list items. * Remove section on restoring states The section on restoring states has been removed - it repeats information which is available elsewhere in the documentation. * Address comments from Thom dated 8-OCT - removed backticks that were used incorrectly. - added links to Persistence and system-based-trigger articles - removed trailing periods from list items - Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)
2017-10-09 10:18:53 +00:00
```java
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Number Livingroom_Temperature "Temperature [%.1f °C]" {channel="..."}
```
openHAB introduces the concept of [Things and Channels]({{base}}/concepts/things.html).
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Each Thing has one or more Channels, and Items are linked to one or more Channels.
There are two different kinds of channels:
- State Channels will, as soon as linked to the Item, update the state of it and/or listen for Commands you send to it.
For example, if you have a `Player` Item, a State Channel could be responsible for propagating the state of an audio player (`PLAYING`, `PAUSED`) to your Item as well as listening for proper Commands (`PLAY`, `PAUSE`, `PREVIOUS`, `NEXT`)
- Trigger Channels will only send events that won't have any effect on the Item unless you treat them with Rules or use a Trigger Profile to do state changes or commands based on your event.
For example, when you use a Binding that integrates buttons or wall switches, a Trigger Channel could be responsible for sending a `PRESSED` event when someone is pressing the button of the device.
This event on its own won't change anything on the Item, but you could use, for example, the Trigger Profile "rawbutton-toggle-switch" to toggle a lamp on or off when the button is clicked.
Also, you could e.g. define a Rule that is triggered by this event and calculates the color of the lamp based on the sun position.
Some Bindings support automatic discovery of Things, in which case discovered Things will appear in the Inbox in the UI.
Once accepted, the new Thing will appear under Settings > Things.
Other Bindings support defining Things in a `.things` file located in the `$OPENHAB_CONFIG/things/` folder.
See the [Bindings](/addons/#binding) configuration section for more information on how to discover or manually define Things for a given Binding.
#### UI Linking
As described above, you can link an Item with a Channel using the UI.
The easiest way to do so, is navigating to the thing and the wanted channel of it.
Expand the view of the needed channel and press `Add Link to item...`.
The then opened view will ask you for an existing item or give you the offer to add a new one.
#### Text File Linking
You may also link an Item with a Channel using the `.items` file located in the `$OPENHAB_CONFIG/items/` folder.
Information about available Channels and options can be found in the Binding readme or discovered via UI.
In UI select a Thing to learn about Channels it supports.
Linking an Item to a Channel is of the form `{channel="channel id"}`.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Examples:
```java
Switch Phone_Mobile "My Mobile Phone" {channel="network:device:devicename:online"}
Number Netatmo_Indoor_CO2 "CO2" {channel="netatmo:NAMain:home:inside:Co2"}
Number Azimuth "Azimuth" {channel="astro:sun:home:position#azimuth"}
Contact Garage "Garage is [MAP(en.map):%s]" {channel="zwave:21:command=sensor_binary,respond_to_basic=true"}
```
#### Multi Binding / Channel Linkage
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
An Item may be linked to multiple Bindings and/or Channels.
Commands and Updates from and to these Items will be combined, and can be used in interesting ways.
Example:
```java
Switch Office_PC {channel="lgwebos:WebOSTV:01dd3ac4-62f4-7505-208b-12345679", channel="network:servicedevice:6d5de4e65d"}
```
The first example shows a symbiosis of the LG webOS Binding and the Wake-on-LAN Binding to interact with a TV.
{: #autoupdate}
#### Parameter `autoupdate`
When left as default, openHAB's `autoupdate` function attempts to predict the outcome of a *command* on the Item *state*.
This prediction may be influenced by any linked channels.
`autoupdate="false"` is a special instruction which keeps the current state of the Item, even if a *command* has been received.
This way, the Item is unchanged unless you explicitly post an *update* to the Item, or a binding updates it.
`autoupdate="true"` forces `autoupdate` to act, overriding any binding recommendations.
[Items] Improve comprehension (#512) * Improve introductory paragraph This is a test. DO NOT approve this PR. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Clarify Item/real world interaction This is a second test. I am still learning about GitHub/GitHub Desktop interaction. The purpose of the test is to check the behavior of GitHub when making multiple commits on a single branch. I have modified the language to clarify the interaction between Items and the real world through bindings. While the existing language was okay, I hope this submission provides additional clarity around the fact that Item states can be set by actions in the real world * Improve readability of Introduction section Changed wording in the Introduction section to improve readability and comprehension. * Correct spelling error and clarify Item/real world interaction Edited introduction to correct spelling error and clarify Item/real-world interaction. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77) * Item Definition and Syntax: improve readability Some wording in the Item Definition and Syntax section has been changed to improve readability. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Type: improve readability Some wording in the Type section has been changed to improve readability Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: improve readability Some wording in the Name section has been changed, and the section has been reorganized to improve comprehension. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Name: Tweak group naming suggestions Based upon comment from @ThomDetrich, tweak the first scheme for group names. Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github:bgilmer77) * Label: improve readability Changed text in the Label section to improve readability and comprehension * State: improve readability Made changes to improve readability and comprehension. * Icons: improve readability The Icons section has been modified to improve readability and comprehension. * Group: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Tags: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. * Binding Configuration: improve readability Changes have been made in wording and arrangement to improve readability and comprehension. Not sure whether all this 1.x information needs to remain. Removed information on persistence. Will look to see if it should be added to other PR on STATE #507. This complete the nit pass through the items.md file * Correct linter formatting issues This commit corrects formatting issues revealed by linter. * Add some last minute changes Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Discuss distinction between command and status - End-users may assume that the change in state of a Switch Item reflects the actual state of the Thing. - Added section to make clear the difference between command and status - May seem obvious, but some implementers could get burned by not thinking this through. * Add second batch of corrections Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich) * Correct typo Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-07 11:37:40 +00:00
Example:
```java
Switch Garage_Gate {channel="xxx", autoupdate="false"}
```
{: #expire}
#### Parameter `expire`
This parameter allows to post an update or command to an item after a period of time has passed.
The expiration timer is started or restarted every time an item receives an update or a command *other than* the specified "expire" update/command.
Any future expiring update or command is cancelled, if the item receives an update or command that matches the "expire" update/command.
The parameter accepts a duration of time that can be a combination of hours, minutes and seconds in the format
```shell
expire="1h 30m 45s"
expire="1h05s"
expire="55h 59m 12s"
```
Every part is optional, but all parts present must be in the given order (hours, minutes, seconds).
Whitespaces are allowed between the sections.
This duration can optionally be followed by a comma and the state or command to post, when the timer expires.
If this optional section is not present, it defaults to the Undefined (`UnDefType.UNDEF`) state.
```shell
Player MyPlayer { expire="1h,command=STOP" } // send STOP command after one hour
Number MyChannel { expire="5m,state=0" } // update state to 0 after five minutes
String MyMessage { expire="3m12s,Hello" } // update state to Hello after three minutes and 12 seconds
Switch MySwitch { expire="2h" } // update state to Undefined two hours after last value
```
Note that the `state=` part is optional.
In the special case of a String item, it is possible to define a state/command as the string "UNDEF" or "NULL" by putting it into single quotes (e.g. "1m,state='UNDEF'").
Without the quotes, the state would be the system type `UNDEF`.
#### Profiles
With Profiles, you are able to change the behavior how Channels interact with your Items.
You can use *State Profiles* on State Channels and *Trigger Profiles* on Trigger Channels.
Profiles can be specified as a parameter for a given Channel on the Item configuration:
```java
<item-type> MyItem { channel="<bindingID>:<thing-typeID>:MyThing:myChannel"[profile="<profileID>", <profile-parameterID>="MyValue", ...]}
```
There are some built-in Profiles available which are described in the table below.
Some Bindings will may offer additional Profiles for Binding-specific use cases.
If this is the case, you will find those within the documentation of the Binding.
Also, all [Transformation Services](/addons/#transform) provide a State Profile which allows you to do the transformation already on item-level instead doing it with a [Sitemap]({{base}}/configuration/sitemaps.html).
You can find the documentation of these Profiles within the [Add-On documentation of the Transformation Service](/addons/#transform) you would like to use.
| ID | Type | Supported Item Types | Description |
|-----------------------------------------------------------------------------------------------|---------|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `default` | State | All | If you don't specify any Profile, this Profile will be used. For State Channels, this means that states and commands are just propagated from the Channel to the Item and vice versa without any changes. For Trigger Channels, the Default Profile won't change anything on the Item. |
| `follow` | State | All | If one device should "follow" the actions of another device, this can be used. The term "follow" in this case means that any state that is sent to an Item will be forwarded from this Item to any linked Channel with the `follow` Profile. It takes state updates on an Item and sends them as a command onto the Channel. In the direction from the ThingHandler towards the Item, this Profile ignores state updates. |
| `hysteresis` | State | Switch | The `hysteresis` Profile can be configured via three parameters: `lower` (**mandatory**) `QuantityType` or `DecimalType`, `upper` (optional) `QuantityType` or `DecimalType`, `inverted` (optional) `boolean`. This Profile can be used to trigger alarms when number values exceed a given `lower` bound - sends `ON` to the Switch Item. By defining an additional `upper` bound it can provide kind of anti-flapping. The `inverted` parameter negates the resulting State of the Switch. |
| `offset` | State | Number | An offset can be specified via the parameter `offset` which has to be a `QuantityType` or `DecimalType`. The specified offset will be applied to the value from the device before it arrives at the Item. |
| `rawbutton-on-off-switch` | Trigger | Color, Dimmer, Switch | This Profile can only be used on Channels of the type `system.rawbutton`. On those Channels, it will set the Item state to `ON` when a `PRESSED` event arrives and to `OFF` when a `RELEASED` event arrives. |
| `rawbutton-toggle-player` | Trigger | Player | This Profile can only be used on Channels of the type `system.rawbutton`. On those Channels, it will toggle the Player Item state between `PLAY` and `PAUSE` when `PRESSED` events arrive. |
| `rawbutton-toggle-rollershutter` | Trigger | Rollershutter | This Profile can only be used on Channels of the type `system.rawbutton`. On those Channels, it will toggle the Rollershutter Item state between `UP` and `DOWN` when `PRESSED` events arrive. |
| `rawbutton-toggle-switch` | Trigger | Color, Dimmer, Switch | This Profile can only be used on Channels of the type `system.rawbutton`. On those Channels, it will toggle the Item state when `PRESSED` events arrive. This Profile can e.g. be used to add button channels to a lighting item which will enable you to turn the lighting on and off with your button. |
| `rawrocker-to-on-off` | Trigger | Dimmer, Switch | This Profile can only be used on Channels of the type `system.rawrocker`. On those Channels, it will convert a press on the first rocker button to an `ON` command while the second one will be converted to an `OFF` command. |
| `rawrocker-to-dimmer` | Trigger | Dimmer | Same as `rawrocker-to-on-off`, but additionally it allows to dim by holding the respective button. Technically, this Profile sends an `INCREASE` or `DECREASE` Command every 500 milliseconds while you hold. |
| `rawrocker-to-play-pause`, `rawrocker-to-next-previous` and `rawrocker-to-rewind-fastforward` | Trigger | Player | These Profiles can only be used on Channels of the type `system.rawrocker` and Player Items. They will convert a press on the first rocker button to an `PLAY` / `NEXT` / `FASTFORWARD` command while the second one will be converted to an `PAUSE` / `PREVIOUS` / `REWIND` command. |
| `rawrocker-to-stop-move` and `rawrocker-to-up-down` | Trigger | Rollershutter | These Profiles can only be used on Channels of the type `system.rawrocker` and Rollershutter Items. They will convert a press on the first rocker button to an `MOVE` / `UP` command while the second one will be converted to an `STOP` / `DOWN` command. |
| `timestamp-update` | State | All | This Profile will update a DateTime Item to track every update of the state of a given Channel, whatever the state is. |
| `timestamp-change` | State | All | This Profile will update a DateTime Item to track every change of the state of a given Channel. |
##### Example 1
You have an Item called `Bedroom_Light` that is connected to a Hue lamp
```java
Color Bedroom_Light { channel="hue:0210:1:bulb1:color" }
```
and a [Rule]({{base}}/configuration/rules-dsl.html) to toggle this light with a serial button:
```java
when
Channel "serialbutton:button:mybutton:button" triggered PRESSED
then
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
if (Bedroom_Light.getStateAs(OnOffType) != ON)
Bedroom_Light.sendCommand(ON)
else
Merge 2.5.x into main (#1266) * Update README (2.5.x) (#1153) Change branch name. Signed-off-by: Yannick Schaus <github@schaus.net> * Update items.md (#1156) * Added var and VA units to UoM (#1146) VA (Volt-Ampere - apparent power) and var (Volt-Ampere reactive) are used to measure power and energy consumption in AC circuits. Signed-off-by: Nagy Attila Gabor <mrbig@sneaker.hu> * Fix filepath to keystore (#1148) Default openHAB userdata environment variable should be `$OPENHAB_USERDATA`, not `$USER_DATA` shouldn't it? At least, this is the default on my fresh openHABian and also the most popular variant to find in the docs. * Slight language corrections (#1150) I think it reads better this way Signed-off-by: Richard Davies <rwdrich@gmail.com> * additional example for non default persistence service (#1152) For me it was confusing how to pass on the serviceId into methods that already had an argument. An extra example is always good. Signed-off-by: jaco <jaco.waes@gmail.com> * Adding 12 new logos for OH Add-Ons page on website (#1158) Signed-off-by: bracklanna bracklanna@users.noreply.github.com * Added missing preset variables (#1104) * Added missing preset variables Signed-off-by: Scott Rushworth <openhab@5iver.com> * Cleaned up blank lines, fixed table, and added file name for SimpleRule Signed-off-by: Scott Rushworth <openhab@5iver.com> * Fix broken link (#1165) * Added Hotlink from "label" section to "state presentation" (#1167) * Added note about broken action (#1164) * Added note about broken action See https://github.com/openhab/openhab-core/issues/1374 Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Incorporated changes from review Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Update index.md (#1170) Link appears to be wrong and does not work when I click on it in Edge. Loads the same page again instead of loading the correct new page from the hyperlink. https://www.openhab.org/docs/developer/guidelines.html * Added Airthings logo (#1171) * typo in exambp (#1172) `Temperature.averageSince(now.minusMinutes(5),"influxdb")` * file.encoding=UTF-8 (#1173) * Update demo URL and add demo.rules URL (#1174) Based on: https://community.openhab.org/t/demo-setup-missing/94850 Old Link is broken leading to 404. The link to the demo.rules on github is an extra :) * Replace outdated zulu.org link. (#1177) * Replace outdated zulu.org link. As of 3/23/2020 zulu.org has an SSL cert that expired on 9/28/2019. Changed link to azul.com/downloads, since that appears to be the new official source. Signed-off-by: Billy Stevens <contact@wasv.me> * Changed all http links to https for installation/index.md. All changed links working, tested on 3/24/2020. Signed-off-by: Billy Stevens <contact@wasv.me> * Minor language tweak (#1178) * Ending an active scan/stopScan (#1179) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add files via upload (#1184) * Update persistence.md (#1185) Clarify return objects for max/min rules extensions. Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk * Update things.md (#1186) Amended example code to include using label and location when defining a Thing with a bridge that is defined elsewhere. * Correct typos (#1190) * Correct usage of its/it's "It's" is always a contraction of "it is" or "it has". "Its" is a possessive. Correct a few places where they were used backwards. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct "Z-Wave" spelling Per https://www.z-wave.com/, the canonical spelling appears to be "Z-Wave". Most places use "Z-Wave" already; change the remaining references to match. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Correct typos and grammatical errors Correct some typos and grammatical errors. Signed-off-by: Bjorn Helgaas <bjorn@helgaas.com> * Update sitemap.md section charts (#1191) I observed that the unique first word in the labels of items charted in a group isn't causing an empty chart anymore. I'm on openHAB 2.5.1. Signed-off-by: Juergen Baginski opus42@gmx.de * Add image for insteon binding (#1196) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * typo (#1198) Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Installation details (#1197) Added more details around the installation and configuration process. Fixed that engine no longer logs "Activated scripting support..." Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update sitemaps.md (#1202) Added full item definition for usage of visibility. See https://community.openhab.org/t/sitemap-visibility-basic-ui/97304/9 * Updated ecobee logo (https://brand.ecobee.com/) (#1203) Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com> * tutorial: Fix description of sitemap 'type' (#1204) In the tutorial, the generic sitemap description says that ItemType has to be the same as the type defined in default.items. Looking at https://www.openhab.org/docs/configuration/items.html#type and https://www.openhab.org/docs/configuration/sitemaps.html#element-types this is incorrect as they take different values. The example is even mislading as `Switch` is one of the only types which is common between items and sitemaps. Might be better to describe `Default` instead. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> * Added information about DateTime Group functions LATEST/EARLIEST (#1206) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Add section for documentation contributions (#1205) Hopefully this will lower the hurdle for people to submit documentation contributions. I know from myself that I didn't submit various documentation improvements, because I didn't know git and thought it would be a much more involved process. Ideally there would be a separate documentation section, but submitting this under the development contribution page for now (as per discussion with @Confectrician in https://github.com/openhab/openhab-docs/pull/1179#issuecomment-605642091). Note that I am addressing the issue of DCO failures wrt specifying the full name that I ran into myself in https://github.com/openhab/openhab-docs/pull/1197#issuecomment-615597308. I found a good discussion of the issue at https://github.com/probot/dco/issues/43. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * fix typo (#1209) * add description of Ephemeris localization support (#1210) Add a new section to describe the localization support and how-to steps Signed-off-by: Michael Roßner Schrott.Micha@web.de * Line 115 broken link - should be: (#1217) * Line 115 broken link - should be: ({{base}}/docs/configuration/sitemaps.html#element-types) was: ({{base}}/configuration/configuration/sitemaps.html#element-types) * Removed diplicated docs breadcrumb Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * add missing space between words (#1212) * Update configuration.md (#1215) I'm a beginner myself. Though I liked this tutorial very much, it took me some time trying and erroring and finally reading forum posts to get behind this. I didn't even know there was something like a more modern ping. So maybe others are happy to learn this right from the beginning. * Remove architecture from Docker tags (#1220) Docker automatically detects the architecture and downloads the appropriate image (openhab/openhab-docker#213). BuildKit will no longer generate new tags having the architecture (openhab/openhab-docker#293). Signed-off-by: Wouter Born <github@maindrain.net> * slight readability improvements (#1221) * slight readability improvements * Update introduction.md * Update introduction.md * minor wording update * Update eclipse.md (#1225) Clarifying that it's no longer possible to make changes in the Core Framework for 2.5.x. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * [fmiweather] logo for FMI Weather binding (#929) Signed-off-by: Sami Salonen <ssalonen@gmail.com> * Update eclipse.md (#1226) Added additional structure around install, run, debug and update steps. Provided more pointers to interactions with Eclipse, Maven and Git. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1227) Need to escape \< and \> in the sign off message format so users see them explicitly in the Contributing to the Documentation section. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Update contributing.md (#1228) Small refinement on documentation change submission flow. Signed-off-by: Mark Theiding <mark.theiding@gmail.com> * Add doc folder to the binding directory structure (#1230) Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Make Subheadings Use Proper Subheading Syntax (#1234) This way they render out as proper markdown and don't look weird on the website Signed-off-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> * Remove unnecessary isCancelled() from code example (#1235) Cancelling an already canceled task has no effect. IMHO this check is not necesssary and removal would simplify the code. I came to this because I saw this pattern in many bindings during reviewing. Signed-off-by: Fabian Wolter <github@fabian-wolter.de> * Update thing-xml.md (#1236) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Fix broken ESH links (#1231) Signed-off-by: Wouter Born <github@maindrain.net> * Update logging.md (#1238) Add information on how to find out the symbolic names of the bundles * Remove Apache Commons from Default Libraries (#1229) See openhab/openhab-addons#7722 Signed-off-by: Fabian Wolter <git@fabian-wolter.de> * Update introduction.md (#1239) * Update introduction.md Signed-off-by: Markus Storm markus.storm@gmx.net * Update introduction.md * Revise Java recommendations (#1240) * Revise Java recommendations * Delete pine.md Do not recommend PINE, it's not supported any longer by openHABian. * Removed sidebar link in config Signed-off-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Update security.md (#1241) Been using FreeDNS for many years (ever since all these companies got rid of their free tiers) and never an issue! * Fix DecimalType hex conversion example (#1243) See: https://github.com/openhab/openhab-core/issues/1526 Signed-off-by: Wouter Born <github@maindrain.net> * Fix typo (#1244) Signed-off-by: Wouter Born <github@maindrain.net> * Update persistence.md (#1246) Fixes link to quartz docs page. * Revision. (openhab#1187) (#1237) * Revision. (openhab#1187) - Update of screenshots, removal of old screenshots - Chapters for better formatting - Removal of ZWave chapter (one example of adding things should be enough IMHO) - Adding items in simple mode and in "manual" mode Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> * Use one line per sentence Signed-off-by: Sascha Billian <sascha.billian@googlemail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> * Add notes for configuring Synology Diskstation (#1219) * Add notes for configuring Synology Diskstation I have a working set up for SSL enabled remote access on a Synology diskstation, taking advantage of the GUI as much as possible, to ensure automatic renewal of certs from Let's Encrypt, etc. It took me about 8 hours to suss it all out, but it could be achieved in about 30 mins if you knew exactly what to do... may not be widely useful, but since Synology is officially supported, I figured this might be a good addition. There's also a minor error in the 'allow' masks - these should be 192.168.0.0/24 to allow access to anything in the 192.168.0.xxx range. * Updated to use one line per sentence Updated to use one line per sentence - sorry for the delay! * Update security.md * Updated for one line per sentence Updated for one line per sentence Signed-off-by: Andrew Mills mills@prettymachine.co.nz * Bad subnet (#1245) Nginx warns about low address bits of `192.168.0.1/24` because they are meaningless. The correct subnet mask should be `192.168.0.0/24` Signed-off-by: Olivier Béraud <olivierberaud@free.fr> * Fixed broken images. (#1247) * Fixed broken images. Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * Fix image path Signed-off-by: Jerome Luckenbach <github@luckenba.ch> * [documentation] clarification of representation property (#1248) * [documentation] clarification of representation property Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopt suggestions of reviewers Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] commas Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] addopted suggestions of @bobadair Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] example added back Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentaion] simplified text Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] typo Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * [documentation] adopted reviewer comment Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> * Add Alexa mapping along side a channel mapping (#1249) * Add Alexa mapping along side a channel mapping It took me a while to find this https://community.openhab.org/t/tagging-devices-for-alexa-support/98155/3 on the Forum and its not clearly documented in the openHAB Amazon Alexa Smart Home Skill or here in Item Metadata. I originally suggested this as an update to the openHAB Amazon Alexa Smart Home Skill documentaion, but it fits better here, then other integrations using metadata (e.g. HomeKit or Google Assistant) could refer to it as well. * Update items.md * Mention defaults for element type setpoint. (#1250) Mention defaults for min, max and step value for element type setpoint. Signed-off-by: Thomas Weiler <toweosp@gmail.com> * Update index.md (#1251) I thought 'workl' was probably intended to be 'work'. * Items - Bedroom_Light written as Light_Bedroom (#1252) Fix small error which might mislead some readers. * Added example for time-weighted averages (#1253) Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Remove deprecated UIs, Eclipse Marketplace from sidebar Signed-off-by: Yannick Schaus <github@schaus.net> * Update branch name in README Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: Nagy Attila Gábor <mrbig@sneaker.hu> Co-authored-by: Christoph Thiede <38782922+LinqLover@users.noreply.github.com> Co-authored-by: Richard Davies <rwdrich@gmail.com> Co-authored-by: jwaes <50528773+jwaes@users.noreply.github.com> Co-authored-by: bracklanna <16140600+bracklanna@users.noreply.github.com> Co-authored-by: Scott Rushworth <openhab@5iver.com> Co-authored-by: cpmeister <mistercpp2000@gmail.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Skinah <32607303+Skinah@users.noreply.github.com> Co-authored-by: pali <pauli.anttila@gmail.com> Co-authored-by: ljsquare <laurens-jan@merkx-ewals.nl> Co-authored-by: PatrikG <40170469+PatrikG8@users.noreply.github.com> Co-authored-by: Elias H <E.Hackradt@web.de> Co-authored-by: Billy Stevens <contact@wasv.me> Co-authored-by: theiding <mark.theiding@gmail.com> Co-authored-by: jadcx <60408305+jadcx@users.noreply.github.com> Co-authored-by: Bjorn Helgaas <bjorn@helgaas.com> Co-authored-by: Jürgen Baginski <opus42@gmx.de> Co-authored-by: robnielsen <rob.nielsen@yahoo.com> Co-authored-by: GumbyMan82 <40233411+GumbyMan82@users.noreply.github.com> Co-authored-by: Christophe Fergeau <teuf@gnome.org> Co-authored-by: Paulo "JCranky" Siqueira <paulo.siqueira@gmail.com> Co-authored-by: Michael Rossner <Schrott.Micha@web.de> Co-authored-by: BugSmurF <52825547+bugsmurf@users.noreply.github.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: josefscript <64727123+josefscript@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de> Co-authored-by: TRS-80 <25938297+TRSx80@users.noreply.github.com> Co-authored-by: sihui <10405486+sihui62@users.noreply.github.com> Co-authored-by: Andrew Mills <amil109@users.noreply.github.com> Co-authored-by: Olivier Béraud <olivbd@users.noreply.github.com> Co-authored-by: Andrew Fiddian-Green <software@whitebear.ch> Co-authored-by: LeeC77 <LeeC77@users.noreply.github.com> Co-authored-by: Thomas Weiler <18066810+toweosp@users.noreply.github.com> Co-authored-by: garretcook <garretcook@gmail.com> Co-authored-by: Michael Fielding <michael.fielding@gmail.com>
2020-09-21 11:29:39 +00:00
Bedroom_Light.sendCommand(OFF)
end
```
Instead of using this Rule, you can also use the `rawbutton-toggle-switch` Profile in combination with [Multi-Channel Linking](#multi-binding-channel-linkage):
```java
Color Bedroom_Light { channel="hue:0210:1:bulb1:color", channel="serialbutton:button:mybutton:button" [profile="rawbutton-toggle-switch"] }
```
This will make your Rule obsolete.
So with Profiles, you can significantly reduce the amount of Rules you need for your Smart Home which helps you to keep your configuration short and clear.
##### Example 2
```java
Number:Temperature Outdoor_Temperature { channel="openweathermap:weather-and-forecast:api:local:current#temperature" }
// Triggers a temperature high alarm (Switch = ON) as of 30 °c and stays ON until temperature drops below 29 °C
Switch Outdoor_Temperature_High_Alert { channel="openweathermap:weather-and-forecast:api:local:current#temperature" [profile="hysteresis", lower="29 °C", upper="30 °C"] }
// Temperture low alert below 0 °C
Switch Outdoor_Temperature_Low_Alert { channel="openweathermap:weather-and-forecast:api:local:current#temperature" [profile="hysteresis", lower="0 °C", inverted=true] }
// Indicates a battery low alarm if battery level drops below 15
Number Battery_Level { channel="serialbutton:button:mybutton:battery-level" }
Switch Low_Battery { channel="serialbutton:button:mybutton:battery-level" [profile="hysteresis", lower=15, inverted=true] }
```