[FR] Button slider read-only mode #1075
Replies: 12 comments
-
You can set the slider percentage via CSS. Edit the card, go to "Styling Options" > "Custom Styles", and add this text: .bubble-range-fill {
transform: translateX(${hass.states['sensor.water_tank_level'].state}%) !important;
} You can use the value from any entity state, attribute, etc. This will also prevent changing it via clicking/dragging, essentially making it read-only. Just remember to add the |
Beta Was this translation helpful? Give feedback.
-
I finally got around to testing this, it's a very interesting idea. It doesn't do the job of making an input_number read-only, but it does allow a regular sensor to be displayed as a slider, which is quite handy. It also doesn't allow me to set an action when tapping the button (I'd like it to pull up the history graph). I still think I want to implement something that is a read-only hybrid between a slider and a regular button, but thanks for the clever idea! |
Beta Was this translation helpful? Give feedback.
-
My Home Screen which shows the main information from my shutters is now loaded with BubbleCard Sliders. Top !! |
Beta Was this translation helpful? Give feedback.
-
I understand the request. I will look at this when I have some free time. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this! I was looking at this also. For my use-cases:
|
Beta Was this translation helpful? Give feedback.
-
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Beta Was this translation helpful? Give feedback.
-
After the latest update, I was hopeful that the read-only mode for sliders had been implemented. @DaveP317 : as this request was assigned to you, do you think you will implement this in the near future? |
Beta Was this translation helpful? Give feedback.
-
@Just666Me Have you seen this #928 ? |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @MrBearPresident for your suggestion. However, as soon as I replace my cover with a battery sensor, the "bubble card" works, and the bar (e.g., 90%) is visible, properly colored green, and non-interactive. |
Beta Was this translation helpful? Give feedback.
-
You would need a custom style like this:
|
Beta Was this translation helpful? Give feedback.
-
Hey, unfortunately life changes are preventing me from getting started on
this in the near future. I still have it in my todo list, but it might not
be until January or February.
…On Tue, Dec 10, 2024, 3:29 AM Just666Me ***@***.***> wrote:
After the latest update, I was hopeful that the read-only mode for sliders
had been implemented.
Recently, I have tried many different approaches, but the slider either
remains editable or is not visible at all, showing only the attribute, such
as 40%.
@DaveP317 <https://github.com/DaveP317> : as this request was assigned to
you, do you think you will implement this in the near future?
Thank you for your support.
—
Reply to this email directly, view it on GitHub
<#604 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZLG5F6P44K4PV3GQUSZK4T2E2J37AVCNFSM6AAAAABJ5WHVZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZQGY2TKMZTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@MrBearPresident: Thank you very much for this solution. |
Beta Was this translation helpful? Give feedback.
-
(I'm adding this issue so that I can do a pull request to implement the feature myself.)
In my use-cases, I have a dashboard configured with bubble button cards in slider mode, where the sliders indicate the battery charge level or fuel/water tank level. The values are derived from input_number elements, but they should be treated as read-only status reporting. No amount of clicking or dragging the slider will change the actual amount of fuel that's in the tank, etc.
Cloos suggested adding a new button type for this. Fundamentally, it should behave exactly like a slider, but it should ignore click-and-drag operations, and it should provide handling options for taps that are similar to other modes for the buttons/icons/sub-buttons.
Beta Was this translation helpful? Give feedback.
All reactions