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

[Feature]: Improve "Unavailable" status on lock card #1393

Open
2 tasks done
peter-dolkens opened this issue Mar 19, 2024 · 1 comment
Open
2 tasks done

[Feature]: Improve "Unavailable" status on lock card #1393

peter-dolkens opened this issue Mar 19, 2024 · 1 comment
Labels
question Further information is requested

Comments

@peter-dolkens
Copy link

Requirements

  • I have updated Mushroom to the latest available version
  • I did a search to see if there is a similar issue or if a pull request is open.

Is your feature request related to a problem?

Using Unifi Access, when clicking "Unlock", the lock becomes "Unavailable" for 5 seconds while the lock is unlatched, before it relocks.

The inbuilt Home Assistant UI just disables the button, but doesn't otherwise change it - notice that "Lock" is simply greyed out

image

The Mushroom Card however changes UI significantly as shown

image image

Describe the solution you'd like

Ideally I'd like the button to simply grey out and become un-clickable when it's listed as "unavailable"

This still indicates the entity is unavailable but we should be able to continue to represent the last-known state of the door (which in this case is the current state)

Describe alternatives you've considered

I could also file a change request with the creator of the Unifi Access add-on, but the functionality they're exposing does make some degree of sense. When the lock is unlocked normally, the system becomes "unavailable" for all intents and purposes until the "locked" event is fired.

This can be seen in the logs
image

Additional context

No response

@peter-dolkens peter-dolkens added the enhancement New feature or request label Mar 19, 2024
@piitaya
Copy link
Owner

piitaya commented Apr 3, 2024

Mushroom icon is grey when the entity is inactive (for turned off lights for example). That's why the unavailable state is using the badge
Also, a lock should not be unavailable when locking, it must use the locking state. I think this should be fixed in the unifi access custom component.

@piitaya piitaya added question Further information is requested and removed enhancement New feature or request labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants