openhab-docs/_addons_bindings/gardena
Thomas Dietrich 826ef4abb4 Distinguish collections, improve update process (#514)
* Rename collection folders

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Change all occurences of addons and repos

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Add further corrections

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Remove temporary directories after processing

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Reduce addons menus, show current uncond.

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Fix typo

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Remove redundant addons from permalinks

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Sort UI menu entries correctly

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>

* Split maven command

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>
2017-09-22 21:05:09 +02:00
..
readme.md Distinguish collections, improve update process (#514) 2017-09-22 21:05:09 +02:00

readme.md

id label title type description since logo install
gardena Gardena Gardena - Bindings binding This is the binding for [Gardena Smart Home](http://www.gardena.com/de/rasenpflege/smartsystem/). 2x images/addons/gardena.png auto

{% include base.html %}

Gardena Binding

This is the binding for Gardena Smart Home. This binding allows you to integrate, view and control Gardena Smart Home devices in the openHAB environment.

Supported Things

Devices connected to Gardena Smart Home, currently:

Thing type Name
bridge smart Home Gateway
mower smart Sileno(+) Mower
watering_computer smart Water Control
sensor smart Sensor
electronic_pressure_pump smart Pressure Pump

The schedules are not yet integrated!

Discovery

An account must be specified, all things for an account are discovered automatically.

Account Configuration

There are several settings for an account:

Name Required Description
email yes The email address for logging into the Gardena Smart Home
password yes The password for logging into the Gardena Smart Home
sessionTimeout no The timeout in minutes for a session to Gardena Smart Home (default = 30)
connectionTimeout no The timeout in seconds for connections to Gardena Smart Home (default = 10)
refresh no The interval in seconds for refreshing the data from Gardena Smart Home (default = 60)

Example

Things

Minimal Thing configuration:

Bridge gardena:account:home [ email="...", password="..." ]

Configuration with refresh:

Bridge gardena:account:home [ email="...", password="...", refresh=30 ]

Configuration of multiple bridges:

Bridge gardena:account:home1 [ email="...", password="..." ]
Bridge gardena:account:home2 [ email="...", password="..." ]

Once a connection to an account is established, connected Things are discovered automatically.

Alternatively, you can manually configure a Thing:

Bridge gardena:account:home [ email="...", password="..." ]
{
  Thing mower myMower [ deviceId="c81ad682-6e45-42ce-bed1-6b4eff5620c8" ]
}

Items

In the items file, you can link items to channels of your Things:

Number Battery_Level "Battery [%d %%]" {channel="gardena:mower:home:myMower:battery#level"}

Sensor refresh

You can send a REFRESH command to items linked to these Sensor channels:

  • ambient_temperature#temperature
  • soil_temperature#temperature
  • humidity#humidity
  • light#light

In the console:

smarthome:send ITEM_NAME REFRESH

In scripts:

import org.eclipse.smarthome.core.types.RefreshType
...
sendCommand(ITEM_NAME, RefreshType.REFRESH)

Debugging and Tracing

If you want to see what's going on in the binding, switch the loglevel to TRACE in the Karaf console

log:set TRACE org.openhab.binding.gardena

Set the logging back to normal

log:set INFO org.openhab.binding.gardena

Note: The Online/Offline status is not always valid. I'm using the connection_status property Gardena sends for each device, but it seems not to be very reliable. My watering control for example shows offline, but it is still working. I have to press the button on the device, then the status changed to online. My mower always shows online, regardless of whether it is switched on or off. This is not a binding issue, it must be fixed by Gardena.

When the binding sends a command to a device, it communicates only with the Gardena online service. It has not control over, whether the command is sent from the online service via your gateway to the device. It's the same as if you send the command in the Gardena App.