Skip to content

Interactions for number type #23

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

Open
fastfourier666 opened this issue May 7, 2025 · 8 comments
Open

Interactions for number type #23

fastfourier666 opened this issue May 7, 2025 · 8 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@fastfourier666
Copy link

fastfourier666 commented May 7, 2025

Hi! Thank you for making this card. Looks great :)

Is it possible to make "number" entities work the same way as they do on the default entities card?

If I set the interaction to "more info", the info box pops up even when I move the slider. I think it should only do that when you click on the icon or name. The "light" entity does work like this.

Thank you!

@warmfire540
Copy link
Contributor

yeah, can you show a pic of what you mean?

there is some code where i decide how to render things, i probably just didn't account for number domain potentially

@fastfourier666
Copy link
Author

Hi, I thought a video might show it better. Thanks!

Screen.Recording.2025-05-07.at.13.42.53.mov

@warmfire540 warmfire540 added the bug Something isn't working label May 8, 2025
@warmfire540
Copy link
Contributor

@fastfourier666 most excellent. I can reproduce with both styles of number entities... probably others.. let me play around with a solution

@fastfourier666
Copy link
Author

You're the best. If only I knew anything about this stuff I would poke around and try to help out, but most of the HA front end stuff is completely baffling to me at the moment!

@warmfire540
Copy link
Contributor

this is trickier than i expected. also i noticed that on mobile things like switches don't work..

I'm trying not to compromise any functionality by making the click area too small or something.. let me mull over this a little more.

@fastfourier666
Copy link
Author

No worries at all. The video I posted was from Brave on Mac OS. I tried it on the Android app and the behaviour is reversed: the number sliders work normally, but the lights show the brightness popup wherever you tap. Perhaps that's helpful..?
Thank you for your work!

@warmfire540
Copy link
Contributor

warmfire540 commented May 26, 2025

@fastfourier666 i have opened a PR to fix this in the Home Assistant frontend project. Maybe a few weeks/month or so if things get approved. This isn't something that will need to be changed in device-card

@warmfire540 warmfire540 added the wontfix This will not be worked on label May 26, 2025
@fastfourier666
Copy link
Author

Thank you so much for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants