same problem
I do have the same problem with the water control since 3 days and am absolutely unsure about the cause. Sensors are working but not the switch. Problem came suddenly from one day to another running HA 0.108.2, upgrading it to 0.108.6 didn’t help. Maybe Gardena / Husqvarna did change something on the API side? Even worse, for some reason I’m not able to see the water control connected to my Homekit environment within HA I can control the water control via Apples home app, but am not able to get that home kit device to my HA. The way back HA entities to Homekit does work. Any hints?
Managed to get it working. Removed the Gardena Gateway from Homekit and readded it by the controller. It now works again with water control.
Hi, i found the not working component from grm. Unfortunately nothing has changed here for the past 6 months. So I forked them and fixed the issues.
For my irrigation control and sensors it works fine…
Did you also happen to rewrite the authentication part to use a token instead of username and password?
No, I did not have to change the api lib from grm, just the integration in HomeAssistant.
The Api Token from 1689.cloud is only valid for 3600 seconds. You would have to implement an asynchronous task to refresh the token and probably also to recreate the websockt connection. That would make the whole thing more complicated and prone to errors.
Hi Tobias,
I have a mower, irrigation control and a sensor. All three work great so you can check them as tested! Many its a idea to add this add-on to HASC?
Hi Tobias, i did setup everything according to the readme file
Unfortunately I get response notification after reboot:
Invalid config
The following integrations and platforms could not be set up:
Gardena
Please check your config.
I installed the plugin,
stored the credentials inside secret file,
generated the api key and stored in configurations
Can you please assist?
Logfile:
2020-05-04 15:53:58 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for gardena doing I/O at custom_components/gardena/init.py, line 109: self.smart_system.update_devices(self.smart_system.locations[location_id])
2020-05-04 15:53:58 ERROR (MainThread) [homeassistant.setup] Error during setup of component gardena
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 171, in _async_setup_component
hass, processed_config
File “/config/custom_components/gardena/init.py”, line 63, in async_setup
hass, config[DOMAIN], SmartSystem
File “/config/custom_components/gardena/init.py”, line 109, in init
self.smart_system.update_devices(self.smart_system.locations[location_id])
File “/usr/local/lib/python3.7/site-packages/gardena/smart_system.py”, line 170, in update_devices
if len(response_data[“data”][“relationships”][“devices”][“data”]) < 1:
KeyError: ‘relationships’
Thank you
It’s really a shame that it didn’t make it into HA. Thanks for updating/fixing it!
I got it up and running and it seems to work fine with the water control and sensor.
Hi, in HA log there is following Info/Error:
Detected I/O inside the event loop:
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for gardena doing I/O at custom_components/gardena/init.py, line 97: self.smart_system.authenticate()
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for gardena doing I/O at custom_components/gardena/init.py, line 100: self.smart_system.update_locations()
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for gardena doing I/O at custom_components/gardena/init.py, line 109: self.smart_system.update_devices(self.smart_system.locations[location_id])
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for gardena doing I/O at custom_components/gardena/init.py, line 111: self.smart_system.start_ws(self._hass.data[GARDENA_LOCATION])
Do you plan to bring this to HACS?
Thanks a lot, it works nice in my setup with irrigation control, smart sensor and sileno city.
Same here . This fork doesn’t work
Hey Michiel,
Short question (since i have only the mower currently) can you confirm that the Gardena Smart Sensor is able to report data towards HomeAssistant using the fork of @tobiask?
I am about to setup my irrigation using a Sonoff 4-ch pro (since i refuse to pay 200 EUR for an Gardena Smart Irrigate control) and would like to base the ‘do i need to water the lawn’ on the data coming from the soil moisture sensor, temperature, forecast etc.
And since i already have a Smart Sileno City mower, that needs to be docked as well before i start watering the lawn off course
An alternative would be that i buy the VH400 Vegetronix sensor and wip something together using Arduino and MQTT but that would be almost as expensive as the Gardena sensor which already has a nice box around it.
Hi,
Currently its not working. When the fork is fixed. it should work. I get all the data of the sensor.
Thanks a lot it works fine!
With my Gardena irrigation control and sileno
My sensor, irrigation control and sensor are also working again
Update: Use https://github.com/py-smart-gardena/hass-gardena-smart-system
I have also created a fork of @grm’s work and created an integration of it:
Should be possible to install via HACS if you add that URL as a custom repository.
The “Detected I/O inside the event loop” problem is fixed in my version.
I’ve also added config flow setup, i.e. you set up the integration from the GUI. This also allowed me to add “devices” (in Home Assistant terms) that the entities (switches, sensors, vacuum/mower) are connected to, and also add battery level sensors.
I own the Gardena Smart Water Control and the Smart Sensor, so those devices I’ve been able to test myself.
I can confirm it is working for me with my Sileno mower, thanks for your work!
However I’m missing some of the sensors from old integration like:
error
last_error_code
timestamp_next_start
source_for_next_start
manual_operation
cutting_time
collisions
charging_cycles
Is it possible to retrieve that data aswell?
Thanks for this Integration. A valve of the irrigation control, could be activated via switch. And the valve could be closed if you activate the switch an deactivate it within 3 sec. Afterwards the switch go to off and don’t represent the status of the valve.
Thanks for the integration. I own a smart irrigation control and a pressure pump. The irrigation control is working as expected but I have some problems with the pump. It is detected and listed in HA but when I try to switch it on I get a 502 Error.
Can someone assist in debugging this?
I‘ve too switch over to -> https://github.com/py-smart-gardena/hass-gardena-smart-system
Thanks for your work @wijnandtop @kayloehmann and all other, but i think the Integration of @osks is now closer to the target to become an official HA integration status with use of the official Gardena/Husquarna API