-
-
Notifications
You must be signed in to change notification settings - Fork 28.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't send commands to the mower #115480
Comments
Hey there @Thomas55555, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) husqvarna_automower documentation |
Is it possible to install the old HACS version again? |
Yes, that's possible, but we don't give support for custom components and we not recommend them. To your bugs: |
Also the device and config entry diagnostics would be helpful. |
As mentioned in #116280 the flipping problem still exists in 2024.5.0 but I'm able now to send commands like setting the light. |
Thanks Thomas, I updated HA to version 2024.5.0 now, but I still can’t start the mower. If I press „Start mowing“, nothing happens at first, but then the schedule button activates automatically and some time later I get „Fehler beim Aufrufen des Diensts lawn_mower/start_mowing. Command couldn't be sent to the command queue: Error from API: 404: Not Found“. Husqvarna.Integration.mp4home-assistant_husqvarna_automower_2024-05-03T09-39-49.719Z.log husqvarna_automower-4c3c56dee42c2ece46582f70a90186c5-Sprout-8aa689a45e73ba81655d5b2aab061b6a.json |
For me the first part looks alright. If you click "Mähen beginnen", then the same command will be sent, like when you click "Zeitplan aktivieren". The command is called "ResumeSchedule", like mentions in the docs. This is because the API can't force the mower to just start, expect if we would force it to mow for a given duration. |
I'm still getting the issue where enable schedule turns itself back on right after turning it off. Running 2024.5.0. Logs attached. home-assistant_husqvarna_automower_2024-05-03T13-47-48.367Z.log |
But as I can see in the logs, the mower received the command |
Maybe it would help to understand better what the Enable Schedule switch is equivalent to with the Automower? Is it Parked? When flipped do I also need to tell it to return to dock? If flipped and returning to dock and I want to cancel, do I just flip it again or need to tell it to start mowing too? |
I think we have a big misunderstanding here. I thought the service "lawn_mower.start_moving" would start the mowing process. But apparently the Husqvarna mower can only follow the schedule and the integration can only switch the schedule on and off. Could it be that the play and pause buttons only switch on and off the schedule? So perhaps the integration works as expected and my expectations are wrong? In the Husqvarna app, I press the play button and then tap "Schedule off - 3 hours" to start the mower directly. But it also took me a long time to understand Husqvarna's operating strategy in the app. Husqvarna has a strange usage strategy ;-) |
So Here the explanation: |
Does that mean, that there is no way to start the mower manually from HA? |
That’s hard to say, because we don’t exactly know what the intended functionality is. |
'Start mowing' and the play button is the same. No idea, why HA makes two buttons there. Enable schedule is also the same. |
I think that is the main problem. People expect the mower to start mowing if they press „start mowing“. But what it does is „enable schedule“. But there is an Husqvarna API command for „Start“. That should be used instead of „ResumeSchedule“. Button Start Mowing/Play -> API Start That is the only way we can actively control the mower. |
But there is always a duration required for start. So if this time is over, the people wonder, why it stopped. |
There is also another way, how you can actively control the mower: when you have a schedule enabled 24/7. And than say: Resume schedule, then the mower starts. And if you disable the schedule, the mower parks until further notice.... |
Yes, but who wants a workaround to make a new integration work like expected? Schedule and manual control are different things and should be treated as that. The mower documentation clearly says what the functions should do. It says "Start or resume a mowing task", not „Enable schedule“.
You could define an input field for that or simply set the value to 24 hours. |
You are right it's not 100% correct. |
My problem is that I can't get the mower to resume mowing. I have an automation that parks the mower at its base when rain starts and resumes mowing 3 hours after rain ends. When rain starts, I turn off the "Enable Schedule" switch. This sends it home. When rain ends, I have tried both turning back on Enable Schedule as well as Starting the mower, but no matter what it stays parked until further notice Logs attached. home-assistant_husqvarna_automower_2024-05-14T16-51-23.360Z.log |
Come on, your integration is now an official part of Homeassistant and uses the internal mower implementation. Imagine if every integration used the light implementation differently, or switches or media players. You would have to search for a long time to find out how this one integration works. That's why there are global integrations like mowers and lights: you only control one device abstraction and this then controls the device via an integration. This is one of the many advantages of Homeassistant. For example, I can replace my mower with another model and everything continues to work as before. However, this does not work if each integration follows a different strategy.
No, the other way around: the mower abstraction has this buttons with a reason. You need them for automations, you need them to control the mower. If you just want to use the Husqvarna schedule, you don’t need a Homeassistant integration at all.
The play button should simply start the mower - without a time limit. That's what the dock button is made for. This can all be controlled wonderfully via automations. If a user wants to run the mower for 25 hours, his automation sends a play and 25 hours later a dock. Why not setting the Husqvarna API Start duration to 20 years? It’s an unsigned int64. You can set it even to 18,446,744,073,709,551,615 minutes. These are 35 Trillion years. The sun will have gone out by then. And Husqvarna, too. 😉 |
I think your schedule is over after 3 hours. This integration can’t start your mower. It only enables and disables the schedule. |
with the old unofficial version, I had about the same automaticity, depending on how much it rained I sent a "return to base" command for N minutes.
logically I also tried to set "disable schedule" and after N hours "enable schedule", but it doesn't work, how can you reproduce this automation? |
My schedule in the app is set to 24x7 effectively. |
The problem
I used the Husqvarna HACS integration before and switched to the core implementation now.
I can see all sensors and diagnose data, but I can’t start and stop the mower. That makes it quite unusable for me. After pressing „Mähen beginnen“ (don’t know the english original text, „Start mowing“ perhaps) after some time I get an overlay with „Fehler beim Aufrufen des Diensts lawn_mower/start_mowing. Command couldn't be sent to the command queue: Error from API: 404: Not Found“ Doesn't matter if I use the integration UI or the services.
I already deleted the old app on Husqvarna developer page, generated a new one, deleted the integration from Homeassistant and added it again, nothing helps.
What version of Home Assistant Core has the issue?
core-2024.4.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
husqvarna_automower
Link to integration documentation on our website
https://www.home-assistant.io/integrations/husqvarna_automower
Diagnostics information
The error log says this:
And I have noticed that the schedule button often jumps back to on automatically after setting it to off. I found this in the log, without pressing the schedule button at all. Because this is the reason?
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: