Comments (17)
Hello everyone,
After discussion with the devs from Gardena and the use of Sabbatho creds, i think we found the issue source. It comes from the handling of the id, where for some mowers id from mowers have a suffix that others do not have. I will try to make an update soon to py-smart-gardena to support this use case !
from hass-gardena-smart-system.
Could you try the new version 0.1.0 and tell me if it changes something on your side ?
from hass-gardena-smart-system.
No more errors with 0.1.0, But i can't do actions like stop or start. Have tried through the card and the buttons, and developer tools. And nothing in the loggs now at all.
Thanks so much for your help with this :)
from hass-gardena-smart-system.
from hass-gardena-smart-system.
I'm sorry for not being clear.
Thats right, i have no errors in log now, and the commands are not working still.
And i have tried this way with both start and stop:
but i get no respons from the mower, i also check the status in the gardena app to be sure but same status there as in Home Assistant.
Of course i have tried stop when the mower is mowing, and i have tried start when the mower is parked and battery is 100%. Just to be clear :)
could i maybe try doin a manual command like a curl to rule out any settings from my part? not sure how it would look like though? Not being very used to sending manual commands.
And as you can see the integration work as for recieving data, just no sending that will work.
from hass-gardena-smart-system.
Today as an automation triggered i found this in my logs, strange that i didn't get this when i tried yesterday in my logs:
Logginformation (ERROR)
Logger: homeassistant.components.automation
Source: custom_components/gardena_smart_system/vacuum.py:170
Integration: Automation (documentation, issues)
First occurred: 10:00:01 (1 occurrences)
Last logged: 10:00:01
Sileno_start: Error executing script. Unexpected error for call_service at pos 1: 502 : error communicating with the backend
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step
self, f"async{cv.determine_script_action(self._action)}_step"
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 623, in _async_call_service_step
*self._prep_call_service_step(), blocking=True, context=self._context
File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1288, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/vacuum/init.py", line 370, in async_start
await self.hass.async_add_executor_job(self.start)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/vacuum.py", line 170, in start
self._device.start_seconds_to_override(duration)
File "/usr/local/lib/python3.7/site-packages/gardena/devices/mower.py", line 31, in start_seconds_to_override
self.smart_system.call_smart_system_service(self.id, data)
File "/usr/local/lib/python3.7/site-packages/gardena/smart_system.py", line 155, in call_smart_system_service
raise Exception(f"{r.status_code} : {response['errors'][0]['title']}")
Exception: 502 : error communicating with the backend
from hass-gardena-smart-system.
from hass-gardena-smart-system.
I got the exact same issue, if needed for debuging.
from hass-gardena-smart-system.
That is really strange, here is what i got in lovelace and working perfectly.
The error 502 seems to me an issue on the gardena side (and that is something we can't do much).
You have this issue all the time ? or sometimes it works and others not ?
Are you behind a firewall, or have some specific network equipments ?
Grm
from hass-gardena-smart-system.
I cant use it at all, i always get the 502 issue.
Seems like both are us are Swedish also, maybe they have something different for us?
Behind a NAT firewal sure, but its proxying 443 to nginx that passes traffic to HA
from hass-gardena-smart-system.
@grm, i have a pfsense firewall, Just the Home Assistant portforward for lovelace access.
Have updated everything aswell as of today, Home Assistant is latest 0.111.4 and Gardena Smart System 0.2.0 (through hacs).
Still have the 502 error.
from hass-gardena-smart-system.
This is really strange,
Would you mind send me your creds and application key by mail so i give it a try by myself as I can't reproduce it on my side ?
Thx,
Jérémie
from hass-gardena-smart-system.
sure @grm
from hass-gardena-smart-system.
any updates? or did you not get application key etc?
from hass-gardena-smart-system.
Hello,
The Fix has been released into beta version 0.2.1b2.
Could you give it a try please ?
Grm
from hass-gardena-smart-system.
The bug has really been fixed in 0.2.1b3 :)
from hass-gardena-smart-system.
Confirmed and working! Thanks @grm for all the time you have put into this :)
from hass-gardena-smart-system.
Related Issues (20)
- Requirements for gardena_smart_system not found: ['py-smart-gardena==1.3.7'] HOT 10
- Integration is not working with HA 2024.2 HOT 17
- Some Warnings
- Gardena Smart System Integration startet nicht mehr HOT 4
- I got this problem, since a few days. Can anyone help me? HOT 7
- get error when adding integration HOT 4
- Values which will be removed in HA Core 2025.1 HOT 2
- Gardena integration not available/loaded HOT 22
- The method for providing platform translations has changed in Home Assistant Core HOT 2
- Invalid flow specified HOT 5
- Gardena - Needs attention HOT 13
- Supported Feature will be removed in 2025.1 HOT 7
- Need possibility to start stop mower with or not schedule HOT 1
- Initialization failed
- Added and installed integration, but no setup or Gardena available HOT 2
- How to install v. 1.10 or beta? HOT 3
- Not refreshing values on humidity sensor HOT 10
- Please update version number.
- Error starting integration HOT 1
- Randomly stops updating? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-gardena-smart-system.