-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
Switchbot Lock Pro: Lock/unlock/open issue #121165
Comments
Hey there @Danielhiversen, @RenierM26, @murtas, @Eloston, @dsypniewski, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) switchbot documentation |
@Chris-126 This should have been included as part of the addition, maybe take a look at this issue in the pySwitchbot repo? |
Hello,
Here a complete yaml for a 4x-tuya-switch:
|
Hi everyone, |
what I see it is a status not being reported back to HA when you manually press the lock pro button. But is not all the time, is sporatic. |
see how it behaves when you lock it unlock it via button... in both switchbot and HA 2024-07-17.at.16.49.29_d9e0de23.mp4 |
This is working perfectly since the latest release of HA! Many thanks! |
For me it’s still broken. Updated the firmware of the lock pro, updated home assistant. Removed and readied device. Still only able to lock/unlock, but not able to unlatch/open the door. |
A workarround for the moment would be to download the switchbot integration and add it as a custom integration. Downsite of the ajustment is that when you have multiple locks and not all need unlatch it doesn't work and if the dev fix the problem with unlatch it doesn't auto update. You do have to change to files to get it to work: add don't forgot the "," at the end of the last line.
"version": "1.0.8" and in lock.py By "def __init__" after change looks like this
"""Initialize the entity."""
super().__init__(coordinator)
self._async_update_attrs()
#if self._device.is_night_latch_enabled():
self._attr_supported_features = LockEntityFeature.OPEN
and by "async def async_unlock" after change looks like this:
"""Unlock the lock."""
#if self._device.is_night_latch_enabled():
self._last_run_success = await self._device.unlock_without_unlatch()
#else:
# self._last_run_success = await self._device.unlock()
self.async_write_ha_state() Hopefully this is useful. |
The problem
Finally with HA 2024.7 my Switchbot Lock Pro apeared as bluetooth device. As the already available matter integration does only support lock/unlock feature and does not provide any more information (like battery status etc.) I was looking forward to try the bluetooth based integration. As expected there are more entities provided which helps me to keep track of i.e. the battery level.
However, the switchbot app allows to lock the door and to unlock or open if the doors has a door latch.
I would like to have the option to simply unlock the door instead of opening it, to implement an automation for overnight locking/unlocking.
Currently the lock.unlock service and the provided buttons in the matter and bluetooth based integration both would open the door completly. I don't want my door being opened automatically ;)
So, I actually remember watching a video related to "Switchbot Lock" which had the option available (Home Assistant bluetooth integration). So, how can I have/activate this for the Switchbot Lock Pro, too?
Ah, one thing might be involved... I cannot use the door closed sensor, as the magnet cannot be applied within range. The door frame is too far away. I don't know, if this is affecting the unlock/open feature. It does not in the Switchbot App, I can use open/unlock as expected.
Also, there service lock.lock and lock.unlock is available for this device but lock.open is not.
Thanks in advance for your replies and evaluations!
Best regards
Christian
What version of Home Assistant Core has the issue?
core-2024.7.0
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
SwitchBot
Link to integration documentation on our website
https://www.home-assistant.io/integrations/switchbot
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: