Skip to content
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

Support for Smart Glass Door #127

Closed
aagrifo opened this issue Jan 14, 2025 · 6 comments
Closed

Support for Smart Glass Door #127

aagrifo opened this issue Jan 14, 2025 · 6 comments
Labels
enhancement New feature or request

Comments

@aagrifo
Copy link

aagrifo commented Jan 14, 2025

The smart glass door has some missing functionality, the battery level and wifi-rssi sensors load but the switch for the door isn't shown. There is also a timer and an auto-off configuration that aren't shown. It looks like the door switch can be implemented by defining the door as a switch (it has a "power" functionClass). Below is a screenshot and the device dump.

image

_dump_hs_devices.json

@Expl0dingBanana
Copy link
Collaborator

@tpural has implemented the door as a switch in the supporting repository. Can you try the dev branch dev-glass-door to see if you can control it properly?

@Expl0dingBanana Expl0dingBanana added the enhancement New feature or request label Jan 16, 2025
@aagrifo
Copy link
Author

aagrifo commented Jan 16, 2025

Appears to work, a new Switch entity was added that does control the privacy switch for the door and syncs with the app

Image

@ZaeGitHub
Copy link

ZaeGitHub commented Jan 17, 2025

Coincidentally, I just installed one of these smart doors today as well. I was able to add it, and aagrifo's comments above apply to me too (the dev branch works).

Unfortunately, it went unavailable a few minutes after (even though it showed up fine in the Hubspace app) and I had to re-add it to get it to work again. I'll report back if it happens again.

@tpural
Copy link

tpural commented Jan 17, 2025

@ZaeGitHub can you see if you have any logs in Home Assistant that could be related?

Settings/Systems/Logs

@ZaeGitHub
Copy link

This is the error I see around that time:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohubspace/v1/controllers/event.py", line 168, in __event_reader
    data = await self._bridge.fetch_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohubspace/v1/__init__.py", line 215, in fetch_data
    res = await self.request(
          ^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohubspace/v1/__init__.py", line 266, in request
    raise web_exceptions.HTTPForbidden()
aiohttp.web_exceptions.HTTPForbidden: Forbidden

For what it's worth, the device has stayed connected since I re-added it.

@tpural
Copy link

tpural commented Jan 17, 2025

Thanks!

We're actually working on a fix for this in Aiohubspace(supporting repo) because it's causing other issues. I don't think it made it into a release yet but we can let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants