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
Enable schedule cannot be turned off #116280
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 |
The switch should work. Can you provide some debug logs? |
I have the same issue. What do I need to do to enable and provide debug logs for this device? |
@home-assistant add-label needs-more-information |
home-assistant_husqvarna_automower_2024-04-28T14-10-18.174Z.log So this morning, it's showing the "Enable Schedule" flag as OFF (even though the mower is running on its schedule right now), and when I try to enable, it flips back to off. Did this a few times while in debugging mode. Logs above. |
There is a bug which makes some of the data from the mower unusable. It was already solved here: |
the problem still exists in Version 2024.5.0. |
This still isn't working properly. With 2024.5.0 if I turn the schedule off while the mower is running I get the following in the logs: 2024-05-01 16:57:36.830 DEBUG (MainThread) [aioautomower.auth] request[post]=https://api.amc.husqvarna.dev/v1/mowers//actions None The mower does go park itself indefinitely but the schedule flips itself back on in the meantime. If I reload the integration the status updates to the correct state. Turning the schedule back on there is the same issue. The mower is enabled but the schedule flips itself off again until a reload. If I don't reload it eventually polls the API and gets the correct value but it seems to take almost 10 minutes in some cases to do that. In the meantime I see a half dozen 403 errors: 2024-05-01 17:06:37.111 DEBUG (MainThread) [homeassistant.components.husqvarna_automower.coordinator] Failed to connect to websocket. Trying to reconnect: 403, message='Invalid response status', url=URL('wss://ws.openapi.husqvarna.dev/v1') The switch should behave like a switch and stay on/off when toggled and the confirmation response from the API is received. If the state changes during an API poll. |
Can you share your config entry diagnostics. It looks like you your websocket connections is not working. |
"integration_manifest": { That's the relavent part for the husqvarna integration. I'm not sure how that helps with a 403 from Husqvarna? The integration is working and the error doesn't seems to cause an issue. After watching some more it seems that polling is every 8 minutes. The 403 might be some sort of rate limit? |
Is it possible, that you haven't added the Authentaication API and the Automower Connect API, like mentioned here? |
I got the same issue for using the Part of my logs are attached:
I am not good in reading python but my nodejs application works just fine, maybe the integration is missing some headers? 🤔 Example of my nodejs application: await axios.post(
'https://api.amc.husqvarna.dev/v1/mowers/xxx/actions',
{
data: {
type: 'ResumeSchedule'
}
},
{
headers: {
'Authorization-Provider': 'husqvarna',
'X-Api-Key': HUSQVARNA_API_KEY,
Authorization: `Bearer ${accessToken}`,
'Content-Type': 'application/vnd.api+json'
}
}
); |
No, its exactly the same: |
Thanks for pointing out that's exactly the same usage of headers 👍
Yes
Yes, I can assure the API-Key used in Home Assistant is connected to the "AutomowerConenct API" in my account. |
I have exactly the same issue, but it still exists. |
|
This is the log: |
As there was a response at 2024-05-09 09:37:33.313, the command was accepted by the mower. Where is the problem? |
The problem is that when I turn off the switch, the command is send, the mower goes back to "home" mode. But the switch turns back on after a few seconds. The switch itself does not give the right status of the schedule.. |
The problem
It's not possible to disable the schedule and park the mower indefinitely. When you attempt the disable the schedule it simply turns itself back on and has no impact on the mower. This makes this integration useless for any automations, like telling the mower to go park itself until the rain stops for example.
Also, now that this integration has been moved to core it now has some major regressions in terms of overall functionality and and intuitive design. This switch should simply say "park the mower until further notice" rather than disable the schedule. It would be nice if you could adjust the schedule separately, provided the API supports this. As it stands now you can't even see the schedule.
What version of Home Assistant Core has the issue?
core-2024.4.4
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
No response
Diagnostics information
No response
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: