Giter Club home page Giter Club logo

Comments (17)

grm avatar grm commented on June 30, 2024 2

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.

grm avatar grm commented on June 30, 2024

Could you try the new version 0.1.0 and tell me if it changes something on your side ?

from hass-gardena-smart-system.

sabbatho avatar sabbatho commented on June 30, 2024

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.

grm avatar grm commented on June 30, 2024

from hass-gardena-smart-system.

sabbatho avatar sabbatho commented on June 30, 2024

I'm sorry for not being clear.
Thats right, i have no errors in log now, and the commands are not working still.

I have tried these buttons:
image

And i have tried this way with both start and stop:
image

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.

sabbatho avatar sabbatho commented on June 30, 2024

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.

northpower25 avatar northpower25 commented on June 30, 2024

@grm @osks any idea?

from hass-gardena-smart-system.

basn avatar basn commented on June 30, 2024

I got the exact same issue, if needed for debuging.

from hass-gardena-smart-system.

grm avatar grm commented on June 30, 2024

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.

basn avatar basn commented on June 30, 2024

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.

sabbatho avatar sabbatho commented on June 30, 2024

@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.

grm avatar grm commented on June 30, 2024

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.

sabbatho avatar sabbatho commented on June 30, 2024

sure @grm

from hass-gardena-smart-system.

basn avatar basn commented on June 30, 2024

any updates? or did you not get application key etc?

from hass-gardena-smart-system.

grm avatar grm commented on June 30, 2024

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.

grm avatar grm commented on June 30, 2024

The bug has really been fixed in 0.2.1b3 :)

from hass-gardena-smart-system.

sabbatho avatar sabbatho commented on June 30, 2024

Confirmed and working! Thanks @grm for all the time you have put into this :)

from hass-gardena-smart-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.