Edit: this discussion has been morphed into a pull request on github: https://github.com/openhab/openhab-docs/pull/850; please continue discussions there (if any)
I am starting this topic to propose an edit/rewrite of the Introduction section of the docs. This attempt has been triggered by many discussion here in the forum to lower the entrance hurdle to the docs.
A couple more remarks:
- Happy if someone with more forum powers than me wants to change this to a wiki for communal editing if desired
- Once it pleases the community, I can gladly morph it into a PR on github
- I have included: https://github.com/openhab/openhab-docs/issues/845 and added a link to How to ask a good question / Help Us Help You
- I am much in favor of to move the section on architecture elsewhere (https://github.com/openhab/openhab-docs/issues/838); but I left in here for now
- Once a term was introduced, I have used hyperlinks rather extensively to maintain a consistency in formatting; just to assure the reader that it is referring to the same concept
- Speaking about hyperlinks: I started with a copy of the intro section from github; only links that point NOT to doc sections, as I wrote all links in the format needed for github; this includes the link to picture of openHAB architecture, if not familiar you can access it here: https://www.openhab.org/docs/#architecture-overview; this architecture section has been renamed below but the content has been not been touched by me
So with this said, here the proposed text, looking forward to your comments:
About openHAB
The open Home Automation Bus (openHAB, pronounced ËÉÊpÉnËhĂŠb) is an open source, technology agnostic home automation platform which runs as the center of your smart home!
Some of openHABâs strengths are
- Its ability to integrate a multitude of other devices and systems. openHAB includes other home automation systems, (smart) devices and other technologies into a single solution
- To provide a uniform user interfaces and a common approach to automation rules across the entire system, regardless of the number of manufacturers and sub-systems involved
- Giving you the most flexible tool available to make almost any home automation wish come true; if you can think it, odds are that you can implement it with openHAB.
What you need to know before you start
When home automation just seems to work, it is always the result of hard work. Home automation is fascinating and requires a considerable investment of your time. Here are some key considerations especially for new users. To be successful, you will need to:
- Start slowly and one step at a time.
- Be prepared to learn
- Remain flexible in how you want to achieve your goal
- Celebrate all the small successes
Remember, openHAB is just a computer program. The computer will only do what you tell him to do.
openHAB can provide many default solutions that are easy to setup. On the flip side, the more you insist that everything should look and work exactly as you want it, the more work you will have to do. openHAB is fully customizable, but doing so will require substantial efforts from you.
After you have read the documentation for openHAB, you will have:
- Identified on which computer you will run openHAB
- Learned how to install openHAB, as well as all other software that is needed to run openHAB (e.g., JAVA)
- Learned how your smart devices communicate with openHAB; how to make openHAB give commands to your smart devices; and how you can interact with openHAB
Keep your focus. For almost everything, there is more than one way in openHAB to achieve a goal or perform a task. Initially, this can be frustrating and confusing, but it also gives great flexibility and does not mandate the use of certain devices or tools.
You may need a desire to understand computers, but, then, this may be a given, as you are reading the documentation of how to do home automation yourself.
Lastly, be prepared to start a new hobby: home automation. Basic functions can be achieved in openHAB rather quickly, e.g., switch lights on at a certain time. Others will require much more efforts and thoughts, e.g., how do I determine that someone is home, including guests, but not counting pets? The openHAB forum is a great place to learn and discuss. But always remember: no one but you knows what you need and what you have as well as yourself. Give plenty of background information if you have a question. And please be courteous and respectful, this is an open-source community and everybody on the forum works with openHAB in their spare time.
A quick overview
openHAB communicates electronically with smart and not-so-smart devices, performs user-defined actions and provides web-pages with user-defined information as well as user-defined tools to interact with all devices. To achieve this, openHAB segments and compartmentalizes certain functions and operations. The following table gives a high level description of the most important concepts as well as a link to more information:
Concepts | Meaning | More Information |
---|---|---|
Bindings | are the openHAB component that provides the interface to interact electronically with devices | link to new section in Concepts |
Things | are the first openHAB (software) generated representation of your devices | click for more info on Things |
Channels | are the openHAB (software) connection between âThingsâ and âItemsâ (see below) | link to new section in Concepts |
Items | are the openHAB (software) generated representation of information about the devices | click for more info on Items |
Rules | that perform automatic actions (in its simplest form: if âthisâ happens, openHAB will do âthatâ) | click for more info on Rules |
Sitemap | is the openHAB (software) generated user interface (web site) that presents information and allows for interactions | click for more info on Sitemaps |
While the table above gives an overview, please remember that it is a simplification of openHAB for the sake of this overview. More elements will be introduced in later chapters of the documentation. All the above Concepts are explained in more depth on other pages that can be accessed either through the sidebar or the links in the table above.
Once you are getting a first overview, it is time to practice. Here a short list of the steps that you will need to consider to get openHAB up and running as your home automation system:
- Install openHAB
- You probably already own a device you wish to control, but even if you donât, you can try out openHAB
- Install a binding (in openHAB)
- Define a âthingâ
- Add a âchannelâ to the âthingâ if not created by the binding
- Define an âitemâ
- Link the âchannelâ to your âitemâ
- Establish a sitemap
Most of the above can be done in openHAB through point-and-click processes in a graphical user interface. But remember, there is always more than one way to achieve your goal in openHAB.
A final word for the DIY enthusiasts. openHAB is very flexible and can support many DIY devices. However, you will quickly realize that DIY often literally means that you âdo it yourselfâ. Working with DIY solutions often requires a deeper level of understanding, as well as more patience and perseverance than the integration of ready-to-use devices from commercial providers. The choice is yours of course, but you will need to be prepared spending either money or time (and sometimes both) to make your home automation goals a reality. And quite often, the investment will be significant.
Donât give up, openHAB is very powerful and flexible and most likely can help you achieve your home automation goals, whichever they are. But it comes with a rather steep learning curve.
Getting Started
To all newcomers: please read the section New User Tutorial. That section provides you with a step-by-step instructions for your first easy setup.
OpenHAB runs on most popular platforms such as Linux, Windows and MacOS and on almost any
hardware ranging from Raspberry Pis to desktop computers and server PCs. You can find specific installation instructions for these and other platforms in the Installation Overview article. If you have a strong preference towards a particular platform, then that platform is probably your best choice.
You can install openHAB on your desktop computer for evaluation purposes if you already have any of these systems available for use, but we recommend using a dedicated system in the long run. If you feel serious about home automation it may be better to start with a dedicated system right away.
For anyone undecided, we suggest a Raspi and using openHABian to get things up and running quickly. Many people find that the simplest way to experiment with openHAB is to get a Raspberry Pi and install openHABian; a âhassle-free openHAB setupâ. While openHABian offers a streamlined and simplified way to get up and running quickly, it is a complete openHAB home automation system easily capable of automating your entire home.
Once you have openHAB up and running, the Configuration article contains everything you need to know to get your openHAB installation talking to different devices around your home.
You will quickly discover that you may want to learn more about Things, Channels, Items, and more. To do so, we highly recommend that you read the next chapter titled Concepts. It provides a more in-depth descriptions of Things, Items, Bindings, etc. that will help you as you dive deeper into openHAB.
The amount of information provided here can be overwhelming, so please come back to these sections often as you develop your home automation system.
Along the way, you may have some questions; the openHAB community is here to help.
The openHAB Community
openHAB is not just software - it is also a community of users, contributors and maintainers, working together on an open-source, interoperable approach to home automation. The center of this community is the openHAB community forum. It is an active and responsive community of developers and maintainers who generally respond quite quickly to forum questions.
Remember that openHAB is an open-source development, driven exclusively by volunteers. Please be kind and courteous, it will be most appreciated by those that will try to help you.
In many occasions, you will notice that your problem has already been raised by others; and discussed and resolved by the community before. You can search previous conversations and issues to see if your question has already been answered. It is best practice and generally considered to be good etiquette to check fairly thoroughly before posting your own question.
If it is your first time posting a question, please read How to help us helping you for information on what information you will need to provide.
A deeper dive: openHAB Structure for advanced users
openHAB 2 is developed in Java and mainly based on the Eclipse SmartHome framework. It uses Apache Karaf together with Eclipse Equinox to create an Open Services Gateway initiative (OSGi) runtime environment. Jetty is used as an HTTP server.
openHAB is highly modular software that can be extended through âAdd-onsâ. Add-ons give openHAB a wide array of capabilities, from User Interfaces, to the ability to interact with a large and growing number of physical Things. Add-ons may come from the openHAB 2 distribution, the Eclipse SmartHome project Extensions, or from the openHAB 1 distribution.
The overall architecture of openHAB is shown in the figure below:
If you are new to openHAB, we suggest you continue to the Concepts chapter where we introduce many fundamental ideas that are used throughout openHAB.
Proposed updates to the concept section
Would suggest to add the following items to the Concept https://www.openhab.org/docs/concepts/ section of the docs.
Channels
Channels are for the logical link of a Thing to an Item. Channels originate from Things definition and define how your Thing can communicate with Item (and vice versa). You will create channels when defining your Thing.
During the definition of your Thing you will identify the channel to which your Item will be linked. These two steps ensure that openHAB can transmit the information from the Thing to the Item (and vice versa).
Bindings
Bindings are software packages that are installed by the user in openHAB. The main purpose of Bindings are to establish the connection between your device and your Thing. Bindings communicate with your device and translate all commands to and from openHAB between your device and your Thing.
Bindings are provided at the Add-on section of the openHAB website. Here you will find a searchable list of several hundred bindings to support as many devices as possible. New bindings are regularly added as developers integrate more devices into openHAB.
For each binding, detailed instructions and examples are provided that include guidance on configuration (if any) of the binding itself, the definition of Things supported by this binding and the Channels these Things provide. In most cases, the description also contains a fully worked out example that includes a definition of Things and its Channels, Items linked to those Channels and the use of these Items in a sitemap.
[Note: In the final docs, every occurrence of Channels will need to be linked to the text above]