AldoQ
(Aldo Quispel)
August 11, 2022, 10:56am
1
In my current situation (two Switchbot Curtain Rods on groundfloor and 2 floors up is where my HA Pi is located) the bluetooth range just seems to low. They get found since the new update with revamped Bluetooth, but I cannot control them.
I know the Switchbot hubs claim to be Bluetooth Mesh (I got one for basically free with a deal). But those are not supported yet in HA. I was curious if anyone has any experience if the Rods themselves also form a bluetooth mesh (being battery driven I would presume not?). I could not find details on the Switchbot site. The 80m thing seems to not really be the case in my home (concrete walls and floors being the issue?).
As I do rather like them, I was thinking of expanding them for curtains on the 1rst and 2nd floor also. As such they could extend the range downward if this is indeed the case. (I did the same for my own Zigbee network, with Zigbee plugs I needed naturally anyway extending the network from 2nd floor to ground).
Edit: I played with the API solution before (but had mixed results) and know there are other workarounds. I just really would like it to work natively in HA without workarounds.
There is a post on here that some others get the curtains discovered but not controllable, doesnāt look signal related. That RSSI seems ok, mine where working with 80-90. Iāve since got a long range Bluetooth USB and itās now 70ish.
1 Like
AldoQ
(Aldo Quispel)
August 11, 2022, 11:44am
3
Thanks! I presumed it was bad due to seeing them going āunavailableā. Perhaps thats just that they are totally idle I just realized.
I saw that post also, I did read people had success sometimes after removing and readding a few times. Sadly with me that hasnāt helped. So thought it may be another issue. But reading your reply, it probably is not.
(the Switchbot I also got for totally free with the deal also never gets discovered. So that also made me thing range issue as itās near the curtains).
Their stuff is so neat, but why Bluetooth and not Zigbee
There is a PR merged that will change the adding of the switchbot devices. Iād wait for that to be available and then remove and re-add the curtains without password or user name
home-assistant:dev
ā bdraco:switchbot_config_flow_cleanup
opened 02:59AM - 05 Aug 22 UTC
## Proposed change
<!--
Describe the big picture of your changes here to comā¦ municate to the
maintainers why we should accept this pull request. If it fixes a bug
or resolves a feature request, be sure to link to that issue in the
additional information section.
-->
- Do not ask for a password if the device does not need one
- Confirm discovery right away if no more information is needed
- Generate the name from the friendly device type and short address
- Allow changing the name by adjusting the config entry title
- Confirm only the device if only one device is found
Upstream change to provide the friendly names : https://github.com/Danielhiversen/pySwitchbot/compare/0.17.3...0.18.4
<img width="381" alt="Screen Shot 2022-08-04 at 4 54 23 PM" src="https://user-images.githubusercontent.com/663432/182992153-10b26355-d5cf-4fc9-8249-4fe37f3120b3.png">
<img width="369" alt="Screen Shot 2022-08-04 at 4 54 20 PM" src="https://user-images.githubusercontent.com/663432/182992159-12a30132-32f4-44c7-8a42-761a25542ee3.png">
<img width="386" alt="Screen Shot 2022-08-04 at 4 30 11 PM" src="https://user-images.githubusercontent.com/663432/182992161-76162104-c739-4d2e-aa14-dfb6f055a74e.png">
<img width="388" alt="Screen Shot 2022-08-04 at 4 30 06 PM" src="https://user-images.githubusercontent.com/663432/182992163-b0af6a19-5528-47c2-b1c7-8d32360ffa60.png">
<img width="364" alt="Screen Shot 2022-08-04 at 4 24 58 PM" src="https://user-images.githubusercontent.com/663432/182992164-0426b9f9-16c5-4257-af6f-7e3b5f5b67c5.png">
<img width="272" alt="Screen Shot 2022-08-04 at 4 24 39 PM" src="https://user-images.githubusercontent.com/663432/182992171-edeffd1f-a4b4-4aeb-8ac1-ec515c094c5c.png">
<img width="268" alt="Screen Shot 2022-08-04 at 4 24 28 PM" src="https://user-images.githubusercontent.com/663432/182992173-c8a4fb69-e385-4949-836f-56c9d7282385.png">
<img width="385" alt="Screen Shot 2022-08-04 at 4 24 16 PM" src="https://user-images.githubusercontent.com/663432/182992174-d97abfef-bac1-4b2c-95d4-c764860fc05f.png">
<img width="382" alt="Screen Shot 2022-08-04 at 4 24 10 PM" src="https://user-images.githubusercontent.com/663432/182992176-63a160ba-445f-49bc-95ba-5d923e6ee1e3.png">
<img width="825" alt="Screen Shot 2022-08-04 at 4 24 07 PM" src="https://user-images.githubusercontent.com/663432/182992178-46a7bb77-8c7f-4aed-8de2-ecbdd6284aaa.png">
## 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.
-->
- [x] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] 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)
- [x] 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 #76225
- This PR is related to issue:
- Link to documentation pull request:
## 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.
- [ ] Local tests pass. **Your PR cannot be merged unless tests pass**
- [ ] There is no commented out code in this PR.
- [ ] I have followed the [development checklist][dev-checklist]
- [ ] The code has been formatted using Black (`black --fast homeassistant tests`)
- [x] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
If the code communicates with devices, web services, or third-party tools:
- [ ] The [manifest file][manifest-docs] has all fields filled out correctly.
Updated and included derived files by running: `python3 -m script.hassfest`.
- [ ] 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.
- [ ] Untested files have been added to `.coveragerc`.
The integration reached or maintains the following [Integration Quality Scale][quality-scale]:
<!--
The Integration Quality Scale scores an integration on the code quality
and user experience. Each level of the quality scale consists of a list
of requirements. We highly recommend getting your integration scored!
-->
- [ ] No score or internal
- [ ] š„ Silver
- [ ] š„ Gold
- [ ] š Platinum
<!--
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:
- [ ] 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/en/development_checklist.html
[manifest-docs]: https://developers.home-assistant.io/docs/en/creating_integration_manifest.html
[quality-scale]: https://developers.home-assistant.io/docs/en/next/integration_quality_scale_index.html
[docs-repository]: https://github.com/home-assistant/home-assistant.io
1 Like