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 setting image for G4 Doorbell #341

Open
2 of 5 tasks
cryptk opened this issue Dec 26, 2024 · 6 comments
Open
2 of 5 tasks

Support setting image for G4 Doorbell #341

cryptk opened this issue Dec 26, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@cryptk
Copy link
Contributor

cryptk commented Dec 26, 2024

Is your feature request related to a problem? Please describe.

I have a custom background image that I like to use for my G4 Doorbell Pro. I would like to be able to display text (for example "Hello cryptk!" when I scan my fingerprint and then some time later have it revert back to my custom image, but currently there is no support for setting the screen to show an image within uiprotect.

Describe alternatives you've considered

I haven't been able to come up with any alternatives other than not using custom images

Additional context

This is functionality that should eventually be exposed in Home Assistant, but the first step would be getting support in this library

Code of Conduct

  • I agree to follow this project's Code of Conduct

Are you willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time, and I know how to start.
  • Yes, I have the time, but I don't know how to start. I would need guidance.
  • No, I don't have the time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.
@cryptk cryptk added the enhancement New feature or request label Dec 26, 2024
@RaHehl
Copy link
Collaborator

RaHehl commented Dec 27, 2024

@cryptk Everything runs via LCDMessage, which can also have the image type. It is therefore already built into the library. If you’re missing that function in HA, you’d need to create a feature request there.

@cryptk
Copy link
Contributor Author

cryptk commented Dec 29, 2024

While there is an image message type, from looking through the code, I'm not understanding how to set the doorbell to show an image. I also haven't been able to find an example of how to do this in the documentation anywhere, and the CLI help text isn't offering any clues either.

The library does properly return that the doorbell is displaying an image when it is set to an image, but as far as I can tell, currently the only way to set that image is through unifi protect.

Could you give me a couple of clues on how to use this library to push an image to the display on the doorbell?

@RaHehl
Copy link
Collaborator

RaHehl commented Dec 29, 2024

If you set a image via protect ui the api call looks like this:
image

@cryptk
Copy link
Contributor Author

cryptk commented Jan 2, 2025

@RaHehl yes, but the issue was never about being able to set an image via the protect UI, that has obviously always worked. The question is about how to do it via this library.

@RaHehl
Copy link
Collaborator

RaHehl commented Jan 2, 2025

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

2 participants