Closed kingy444 closed 2 months ago
I recently deprecated tooltip
in favor of tooltip_style
in my other project and plan to do something similar in this one. I'm thinking that I can refactor the tooltip text to use an ::after
pseudo element with the content
property, and make it so that the user can change this to a template. I'll let you know when I have an alpha or beta available.
@kingy444 in the latest 3.5.3 alpha (alpha.014 at time of writing), you should be able to change the tooltip label using the built in style options. Can you install the latest alpha build and try adding this to your slider custom action?
custom_actions:
slider:
style:
'--tooltip-label': '{{ 100 * VALUE | int }}%'
Because this release has a bunch of small feature requests I've bumped the version up to 3.6.0 and put a beta out. Let me know if it looks good to you!
Looks good from my side - haven't found any quirks so far
@Nerwyn, quick note after I ran through some issues: Using {{ value }}
does not seem to work on the Home Assistant Companion app on my Android phone (returning NaN). Changing to {{ VALUE }}
resolved the issue.
Might want to look into it, or update the READEME Docs to stick to ~{{ value }}~ {{ VALUE }}
https://github.com/Nerwyn/android-tv-card/blob/67b37569cad6afa2259f86938266a8c80c8920ef/README.md?plain=1#L802
All caps template variables have been deprecated in favor of lower case ones (they'll still work but aren't recommended as I try to make user facing variable names consistent with Home Assistant and card-mod template variables). It isn't working for you due to a caching issue. Try clearing cache and reinstalling the latest version.
Is your feature request related to a problem? Please describe. I would like the value of the Slider card to represent that of the device. This is somewhat working but say when the TV volume is
40
the slider appears as0.40
Describe the solution you'd like If there was an option to "multiply the slider tooltop value by x" then I could define a value of
100
and the true value of0.40
would display to the users tooltip as40
Obviously the backend still needs to send the same original value this is visual onlyDescribe alternatives you've considered Tried to see if this can be done under the current templating but couldnt work out a way