Get remaining time of current job?

Du möchtest Deinen Automower in Deine Hausautomatisierung einbinden oder eine eigene App entwicklen?
Hier wird diese offene Schnittstelle zum Robonect Hx Modul beschrieben.
phrusher
Beiträge: 8
Registriert: So 23. Jul 2017, 23:11
Mäher: Husqvarna Automower 330X
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2013
Robonect-Modul: Robonect Hx (Rev.4)
Robonect Firmware: 1.0beta6a

Get remaining time of current job?

Beitrag von phrusher » Sa 18. Aug 2018, 12:02

Hi,

I've been trying to read through the documentation for the API but could not see any way to retrieve the remaining time or the end time of the current job. Is it possible somehow either through http or mqtt? There seem to be a little bit of documentation missing overall so I'm hoping it's out there somewhere but that I've just missed it :)

Benutzeravatar
shadowkiller
Beiträge: 1984
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.1b

Re: Get remaining time of current job?

Beitrag von shadowkiller » Sa 25. Aug 2018, 17:24

hey,

maybe there is no possibility for retrieving the remaining time for mowing.

The Mower itself decides when to go back for loading because of the remaining battery charge. Maybe you have to know the border of remaining battery charge when mower goes back for loading. With this maybe it'll be possible to nearly predict the possible remaining mowing time from the point of actual battery charge by yourselfs automation systems calculations.
WLAN oder Robonect funktioniert nicht? Erstmal die Tipps lesen!
--
Kompendium für Mähroboter: Download ERFAdoc (ca. 4,3 MB, 232 Seiten-PDF) von Fidatex
--
Es ist schon alles gesagt, nur noch nicht von allen. (Karl Valentin)

pirni
Beiträge: 113
Registriert: Fr 24. Feb 2017, 15:58
Mäher: Gardena R45Li
Firmware des Mähers (MSW): MSW 6.xx.xx
Herstellungsjahr: 2016
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: v1.1b

Re: Get remaining time of current job?

Beitrag von pirni » So 26. Aug 2018, 10:20

Guess He means something like:
Mowing time left: 37min
Regarding the timer for that Day. No matter of charging time or breaks.
Should be possible to read the end time of the time schedule for Robonect

Benutzeravatar
shadowkiller
Beiträge: 1984
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.1b

Re: Get remaining time of current job?

Beitrag von shadowkiller » So 26. Aug 2018, 11:53

phrusher hat geschrieben:...
could not see any way to retrieve the remaining time or the end time of the current job.
...
Do you mean end time of a timer or end time of the actual mowing cycle inside a timer-range?

Anyway, for each case the answer we can offer is what we just wrote.
Anybody else with another idea?
WLAN oder Robonect funktioniert nicht? Erstmal die Tipps lesen!
--
Kompendium für Mähroboter: Download ERFAdoc (ca. 4,3 MB, 232 Seiten-PDF) von Fidatex
--
Es ist schon alles gesagt, nur noch nicht von allen. (Karl Valentin)

phrusher
Beiträge: 8
Registriert: So 23. Jul 2017, 23:11
Mäher: Husqvarna Automower 330X
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2013
Robonect-Modul: Robonect Hx (Rev.4)
Robonect Firmware: 1.0beta6a

Re: Get remaining time of current job?

Beitrag von phrusher » So 26. Aug 2018, 12:33

Something basic and just getting the end time of the current job would be sufficient for me. Don't need to know if it's a scheduled job from the timer or a manually placed "job".

The reason for this is that one side of the garden is a slope downwards towards the neighbors. Whenever the mower changes state in that slope, for example from "mowing" to "searching", it rolls down to their lawn and ends up outside our cutting area and stops there.

What I've done to solve this for now is to have a service call the Robonect API to get the tilt of the mower and if the angle is low the service sends a command for EOD. It works as long as my timer ends at a specific time as the service start calling it five minutes before the timer schedule ends. But if I change the time of the timer or create a manual job it won't work.

So what I'm hoping for is that whenever the mower starts cutting the service will receive an event, probably a status change through mqtt, and can then retrieve the expected end time and schedule the EOD command a few minutes before that planned end.

Makes sense?

Benutzeravatar
shadowkiller
Beiträge: 1984
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.1b

Re: Get remaining time of current job?

Beitrag von shadowkiller » So 26. Aug 2018, 12:39

Ok. So this is the only answer, I can give you:
shadowkiller hat geschrieben:hey,

maybe there is no possibility for retrieving the remaining time for mowing.

The Mower itself decides when to go back for loading because of the remaining battery charge. Maybe you have to know the border of remaining battery charge when mower goes back for loading. With this maybe it'll be possible to nearly predict the possible remaining mowing time from the point of actual battery charge by yourselfs automation systems calculations.
If this will be not practical for you and nobody else has an idea, please ask „admin“ for assistance per forum private message.
WLAN oder Robonect funktioniert nicht? Erstmal die Tipps lesen!
--
Kompendium für Mähroboter: Download ERFAdoc (ca. 4,3 MB, 232 Seiten-PDF) von Fidatex
--
Es ist schon alles gesagt, nur noch nicht von allen. (Karl Valentin)

phrusher
Beiträge: 8
Registriert: So 23. Jul 2017, 23:11
Mäher: Husqvarna Automower 330X
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2013
Robonect-Modul: Robonect Hx (Rev.4)
Robonect Firmware: 1.0beta6a

Re: Get remaining time of current job?

Beitrag von phrusher » Do 30. Aug 2018, 22:40

Making it return based on battery level is quite easy with the mqtt events but it's the planned end time I would need, to bad that there is no ready method to retrieve that.

Thanks for your suggestions though!

Benutzeravatar
shadowkiller
Beiträge: 1984
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.1b

Re: Get remaining time of current job?

Beitrag von shadowkiller » Fr 31. Aug 2018, 02:44

I think you didn’t understand. Maybe because of my bad English...

The Mower decides itself(!) based on battery level, when to go back. There is no planned time!
But if you mean the end time of a timer range, you can use this information. But there is nothing else.

Please ask admin.
WLAN oder Robonect funktioniert nicht? Erstmal die Tipps lesen!
--
Kompendium für Mähroboter: Download ERFAdoc (ca. 4,3 MB, 232 Seiten-PDF) von Fidatex
--
Es ist schon alles gesagt, nur noch nicht von allen. (Karl Valentin)

phrusher
Beiträge: 8
Registriert: So 23. Jul 2017, 23:11
Mäher: Husqvarna Automower 330X
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2013
Robonect-Modul: Robonect Hx (Rev.4)
Robonect Firmware: 1.0beta6a

Re: Get remaining time of current job?

Beitrag von phrusher » Fr 31. Aug 2018, 04:04

Yes, I understand fine. I think :) For example if the mower usually returns when the battery reaches 30% it's easy to listen to the battery events over mqtt and send an EOD command whenever the battery gets below 35%.

What I mean by planned end is the end of the timer or the end of a manually placed job.

Benutzeravatar
shadowkiller
Beiträge: 1984
Registriert: Do 11. Jan 2018, 08:42
Wohnort: Würzburg
Mäher: Husqvarna Automower 315
Firmware des Mähers (MSW): MSW 10.xx.xx
Herstellungsjahr: 2017 (Modell 2018)
Robonect-Modul: Robonect Hx (Rev.5)
Robonect Firmware: V1.1b

Re: Get remaining time of current job?

Beitrag von shadowkiller » Fr 31. Aug 2018, 17:30

phrusher hat geschrieben:
Fr 31. Aug 2018, 04:04
Yes, I understand fine.
Good!
...
What I mean by planned end is the end of the timer or the end of a manually placed job.
And now, what is the problem? Use the end time and the actual time to calculate the remaining time by your software.
WLAN oder Robonect funktioniert nicht? Erstmal die Tipps lesen!
--
Kompendium für Mähroboter: Download ERFAdoc (ca. 4,3 MB, 232 Seiten-PDF) von Fidatex
--
Es ist schon alles gesagt, nur noch nicht von allen. (Karl Valentin)

Antworten

Zurück zu „API für Robonect® Hx“