redindian / homebridge-gardena-lawnmower

MIT License
6 stars 7 forks source link

Gardena Lawnmower Mähzeit #2

Open Apple898 opened 4 years ago

Apple898 commented 4 years ago

If you prefer english please use one of the translator like www.deepl.com

Hallo Thorsten,

ich habe Dein gardena-lawnmower plugin installiert und stelle nun fest, dass beim manuellen Starten über die Homekit app der Mäher nur ca. 3-4 Minuten läuft und dann wieder in die Ladestation fährt. Starte ich über die Gardena app ist alles ok. Was mir bei der neuesten Gardena Software auffällt ist, dass die App nach dem manuellen Starten eine Laufzeit von 1-6 Stunden abfragt. Erst nach Eingabe startet der Mäher. Das war in der letzten Gartensaison noch nicht so. Mir würde jedoch vollkommen reichen, wenn der Mäher über Homekit manuell zu starten wäre und er dann so lange läuft bis man ihn manuell stoppt. Die Laufzeiteingabe würde ich nicht benötigen. Hast Du eine Lösung für mich bzw. kannst Du Dein plugin updaten? Ich sage gleich dazu, dass ich fast blutiger Laie bin und mich mit Terminal Befehlen fast nicht auskenne. Deshalb wäre natürlich ein modifiziertes plugin für mich die beste Lösung. Freue mich von Dir zu hören.

Viele Grüße

Siggi

neuhausf commented 4 years ago

Hi, I guess the API of the mower-control has changed. See: https://community.openhab.org/t/problem-with-smart-sileno-life-mower-error-503-service-unavailable/95103/2 and

https://developer.1689.cloud/apis/GARDENA+smart+system+API#/swagger

The mow duration is now in seconds. Probably its enough to replace the 180 min with 10800 seconds.

redindian commented 4 years ago

Hi, that seems easy enough. I’ll try to update the app in the next few days. Thanks for the links, that really helps!

Apple898 commented 4 years ago

Hello redindian,

I am already looking forward to the modified plugin. Please think about the mow duration. If you change the mow duration maybe it is better to use 14.400 or 18.000 seconds instead of 10.800? Or is it much more reasonable to have not a fix mow duration and you can stopp the mower manually?

Apple898 commented 4 years ago

Hello redindian, It would be very nice if you could modify the mow duration. Your plugin is super but we need a longer mow duration. Hope you can modify it soon

neuhausf commented 4 years ago

@Apple898 You can try my fork: https://www.npmjs.com/package/homebridge-gardena-mower let me know if it works

Apple898 commented 4 years ago

Hi Florian, I always tried your modified plugin yesterday evening and it seems that it run perfect. I'll keep watching it this week. If you are willing and you want to improve it in the future it would be very nice the mow duration would be flexibel. For example you could tell Siri "Start mower for x-hours" At the moment I recognize that your version changed from 0.1.0 to 0.1.1. What is the update modification?

Apple898 commented 4 years ago

Now I did an update via config-ui-x and a version 0.1.2 is installed

neuhausf commented 4 years ago

@Apple898 you are fast ;) please update again to v0.1.3. I had a typo in the config-ui configuration. Now configuration should work via UI: image

neuhausf commented 4 years ago

If you are willing and you want to improve it in the future it would be very nice the mow duration would be flexibel. For example you could tell Siri "Start mower for x-hours"

Unfortunately, this can not be done easily, because in Homekit a fan is simulated. I'll see if there's a possibility for some sort of timer.

At the moment I recognize that your version changed from 0.1.0 to 0.1.1. What is the update modification?

You can now configure the plugin via the Homebridge Config-UI. The mowing duration can also be set as a config parameter.

Apple898 commented 4 years ago

What shall I say: YOU ARE REALLY THE BEST!! The Mower is working at the moment and everything looks ok. The configuration via config-ui is great. The mowing duration works perfect. Thank you so much. I really enjoy your work. Great job!

redindian commented 4 years ago

Great work! Sorry, I haven’t had time to get to it. Nice to see you can easily configure it now also! 👍

neuhausf commented 4 years ago

@redindian no problem :wink: I have a mower too and wanted to see if it works.

redindian commented 4 years ago

@neuhausf I pulled your changes back into this one. And changed package.json and README.md. Hope that's ok and I didn't miss anything. Thank again! 👍

This file from your repo still has a reference to mine, not sure if that's a problem.

neuhausf commented 4 years ago

@redindian Sure thing! Thanks for mentioning the reference - I'm gonna fix this. Note that I uses github actions to auto-deploy to npm. If you setup an npm_token as github secrect, it would work for you too: https://help.github.com/en/actions/language-and-framework-guides/publishing-nodejs-packages

GEDE35 commented 2 years ago

@redindian @neuhausf It seems the plugin is not working again. Maybe because of an update from Gardena? Would it be possible to make it work again? It would be tremendously appreciated.

neuhausf commented 2 years ago

@GEDE35 It seems that the API has changed again. This time quite substantially. You would probably have to redo the entire implementation. I now use Home Assistant, which also has Gardena integration. Maybe you can copy certain things. But it's in Python ;) In short: Right now I don't have the time to maintain this :(

GEDE35 commented 2 years ago

@neuhausf Okay, a pity that they changed it again. Thank you for looking in to it though :)