Hi! I would like to start-pause-dock my husqvarna automower 315 (non-x) in HA connecting to it via bluetooth through an esp32. Has anyone tried to do it yet?
Thank you
nickrout
(Nick Rout)
June 26, 2021, 4:33am
2
Is there any project out there on github that has documented the Husqvarna bluetooth protocol?
nickrout
(Nick Rout)
June 26, 2021, 4:42am
3
Found this, and searching robonect on this forum finds stuff
1 Like
Hello.
Did this project saw a light ?
This is for husqvarna automowers with internet connection capabilities, itās not the goal of this thread.
Unfortunately I have not enough knowledge in order to to develop this by myself
jkaberg
(Joel KĆ„berg)
April 25, 2024, 10:02am
9
Just two honourable mentions:
home-assistant:dev
ā alistair23:alistair/husqvarna_automower_ble
opened 10:04PM - 18 Jan 24 UTC
<!--
You are amazing! Thanks for contributing to our project!
Please, DO Nā¦ OT DELETE ANY TEXT from this template! (unless instructed).
-->
## Proposed change
This PR adds support for the Husqvarna Automower BLE integration.
The Husqvarna Automower BLE integration provides connectivity with Husqvarna Automowers lawn mowers via a local Bluetooth connection. This allows connecting and controlling an Automower without any accounts, cloud or network connection.
The integration is based on [AutoMower-BLE](https://github.com/alistair23/AutoMower-BLE), a unofficial reverse engineered Husqvarna Automower Connect BLE library.
The integration has been tested against a 305 Automower using a ESPHome Bluetooth proxy.
This is somewhat similar to https://github.com/home-assistant/core/pull/100569, except https://github.com/home-assistant/core/pull/100569 uses the cloud API while this integration uses the local BLE. Not all mowers support BLE and not all mowers support the cloud, so although there is overlap both integrations support different mowers.
## Type of change
<!--
What type of change does your PR introduce to Home Assistant?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [X] New integration (thank you!)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Deprecation (breaking change to happen in the future)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->
- This PR fixes or closes issue: fixes #
- This PR is related to issue:
- Link to documentation pull request: https://github.com/home-assistant/home-assistant.io/pull/30921
## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->
- [X] The code change is tested and works locally.
- [X] Local tests pass. **Your PR cannot be merged unless tests pass**
- [X] There is no commented out code in this PR.
- [X] I have followed the [development checklist][dev-checklist]
- [X] I have followed the [perfect PR recommendations][perfect-pr]
- [X] The code has been formatted using Ruff (`ruff format homeassistant tests`)
- [X] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [X] Documentation added/updated for [www.home-assistant.io][docs-repository]
If the code communicates with devices, web services, or third-party tools:
- [X] The [manifest file][manifest-docs] has all fields filled out correctly.
Updated and included derived files by running: `python3 -m script.hassfest`.
- [X] New or updated dependencies have been added to `requirements_all.txt`.
Updated by running `python3 -m script.gen_requirements_all`.
- [ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
- [X] Untested files have been added to `.coveragerc`.
<!--
This project is very active and we have a high turnover of pull requests.
Unfortunately, the number of incoming pull requests is higher than what our
reviewers can review and merge so there is a long backlog of pull requests
waiting for review. You can help here!
By reviewing another pull request, you will help raise the code quality of
that pull request and the final review will be faster. This way the general
pace of pull request reviews will go up and your wait time will go down.
When picking a pull request to review, try to choose one that hasn't yet
been reviewed.
Thanks for helping out!
-->
To help with the load of incoming pull requests:
- [x] I have reviewed two other [open pull requests][prs] in this repository.
[prs]: https://github.com/home-assistant/core/pulls?q=is%3Aopen+is%3Apr+-author%3A%40me+-draft%3Atrue+-label%3Awaiting-for-upstream+sort%3Acreated-desc+review%3Anone+-status%3Afailure
<!--
Thank you for contributing <3
Below, some useful links you could explore:
-->
[dev-checklist]: https://developers.home-assistant.io/docs/development_checklist/
[manifest-docs]: https://developers.home-assistant.io/docs/creating_integration_manifest/
[quality-scale]: https://developers.home-assistant.io/docs/integration_quality_scale_index/
[docs-repository]: https://github.com/home-assistant/home-assistant.io
[perfect-pr]: https://developers.home-assistant.io/docs/review-process/#creating-the-perfect-pr
2 Likes
zupdaz
(Zupdaz)
April 29, 2024, 3:46pm
10
Great work. Hope this gets merged soon
1 Like
@alistair23
Using the husqvarna_automower_ble, so happy as iāve been after this for so long. Is there anyway to get the current battery charge or other sensors in this integration?
HA is already querying the battery status, it just isnāt exposed as a sensor yet (so you canāt see it).
Basically we just need people to write code to query the mower (the BLE API is pretty complete for basic operations), expose the data, include integration tests and then send a PR.
Iām hoping to get battery status working, as it worked in the past but was removed to simplify upstreaming.
Does you know, if Gardena lawn mowers, that are made by Husqvarna, are supported too by the BLE Integration?
Thanks very much. Afterwards I see, that I could have found this info on my own
I tried to connect the mowers as described. Put in the BLE MAC Adresse when asked. On the mower the Bluetooth sign appeared for 2 seconds. Then HA says āunknown error occuredā.
I put the mower near to the pi, ha ist running on. Used the Bluetooth of the pi itself, so no stick. Bluetooth pairing with Android app works good.
Do you have any Tipps fĆ¼r me?
Thanks in advance