Created At

Feb 23, 2020

Last Update

Feb 26, 2020

Platforms

HC 2

Views

835

Download

94

Main features

 Watch and control Gardena Smart System devices.

Connects to your Gardena account, retrieves information about smart devices configured within that account and allows you to control them. Installation if fully automated: there is only a single scene to provide status gathering, sending commands and creating virtual devices in HC2.

Advantages

  • Detection of new Gardena devices and automatic creation of corresponding Fibaro virtual devices.
  • Polish and English languages are supported.
  • Easy installation: just put your account information and start the scene.
  • Source code is easy to maintain and develop (rich debug information, separation of supported device types from data presentation, translation system included, etc.).
  • Five categories of Gardena devices supported: gatewayirrigation control, watering valvesensor, and mower.

 

What you need 

At least Gardena Smart Gateway configured and access to your Gardena account. Any sensor, watering device or mower connected to that account will become available in Fibaro ecosystem.

Installation

  1. Create LUA scene with the file provided in the archive.
  2. Put your Gardena account details (GARDENA_ACCOUNT and GARDENA_PASSWORD).
  3. Start the scene - it will automatically create global variables and virtual devices based on your account information.
  4. Update virtual device: set names, icons and categories as you wish.

Optional configuration

Read comments in Lua scene.
Each configuration parameter is described there in detail.

FAQ

I don't want to import all devices from my account. How to achieve that?

You may do that by configuring IGNORE_CATEGORY variable if you would like to exclude all devices of a given type (like "sensor") or you may remove unwanted VDs manually and change CREATE_VIRTUAL_DEVICES to false so as not to recreate deleted devices.

Can I use two or more Gardena accounts in my HC2?

Sure. Just make a clone of the main Lua script, update account details and give a unique value to ACCOUNT_UNIQUE_ID variable.

Can I provide my own translation or change fields displayed in a virtual device?

Yes, it is simple. All language specific information is given in two variables: translations and repeatedTrans. Look for them in source code and that should make things clear. Also field definitions are provided in source code. Look for "TYPEconfig" variable (mowerConfig, e.g.) and change what you need. For labels the first value in each item is a number used for ordering elements, second is a default (English) label, third is a format ([d] is for timestamps, [u] is for units retrieved from Gardena API). In the end, remember to use UPDATE_DEVICE_DEFINITION variable to apply changes in virtual device definition.

 

Screenshots

14 Comments,  Want to add comment please login
Da54c20566015cb188b16106e0cb981e

This must be the cause of communication problems. Unfortunately, I cannot help you. Both addresses you mentioned work fine for me. You could try writing to Gardena support, maybe they banned your IP for some reason.

Ff35aead74ea72dc96fcd1a3877f0879

Yes it is the whole log. I try something. When i open in chrome Browser "https://sg-api.dss.husqvarnagroup.net/" I get a Server Error Response. Log in to "https://smart.gardena.com" works fine.

Da54c20566015cb188b16106e0cb981e

Well, is that the whole log? It seems like the most important part is missing. (My HC2 [4.560] still works fine with the solution - no issues of this kind.)

Ff35aead74ea72dc96fcd1a3877f0879

Hello, First the Lua Code works fine on my HC2. But since two days the LUA Scene aborted with a Error Message. I don`t have changed my Gardena Account and Password. It is always the same and works fine. Can anyone help me? [DEBUG] 13:07:27: GardenaSmart - scene version 1.0 [DEBUG] 13:07:27: Automatic update runs every 60 seconds. [DEBUG] 13:07:27: Getting data from Gardena services... [DEBUG] 13:07:27: 2020-05-09 13:07:27.144851 [ fatal] Unknown exception: /usr/share/lua/5.2/json/decode/util.lua:35: unexpected character @ character: 1 0:1 [S] line: [DEBUG] 13:07:27: S

Da54c20566015cb188b16106e0cb981e

Gardena Power Adapter is not (yet) supported. I do not have one. I also did not found any API communication examples to use them "blindly". If you have the Power Adapter you could help me with that implementation (sharing temporary your account with active device of this kind). If you wish so please contact me using Fibaro forum (there is a corresponding thread on Gardena Status).