It might pay to check the docs. To answer your questions:
I’m not quite sure what you have in mind, but sounds a bit like a marker - here’s an example or look it up in the config options
You don’t lose colours when you use a pointer, they just become quite faint - this is done to keep things clear. You can change that if you like - see the second example in the advanced section about using card_mod to alter CSS variables
I don’t think I will add pointer variations. A key goal for ring-tile card is to keep the visual design clean and consistent. You can change the pointer colour though (using card_mod)
Ok, thanks a lot! I didn’t even think that marker can be variable… silly me…
Ok, card-mod can do wonders, yes. I’m not a great fan of it, because it quickly become pretty complicated (to complicated for me to figure it out) and in the past it broke a few times with HA update (but many addons do occasionally…). But with examples i managed to achieve more color
Hi,
Just started using this card and I really like it. Love the minimalist styling!
I’m however trying to do a custom size for my dashboard. So, if I select ring_size: 3 for example the div.container size is 154x154px. I would like to resize the container size with the ring element to be 120x120px.
I have tried using rt-ring-svg $: | with card-mod to try and target the container size but I’m a noob with the CSS/DOM syntax structure when using card-mod.
Can anyone more experienced, guide me to the correct code to target the container size properly please.
Perhaps I’m just approaching it completely wrong. Any insights would be greatly appreciated.
Thanks
However, if you use an icon in your config, it’s likely to show up in the wrong place. This has to do with the way I’m rendering the icon to take advantage of Home Assistant’s cool icon caching solution (saves bandwidth, but costs frustration).
If you want to change units, best to use a template helper to define a new sensor with your preferred units (or use the Home Assistant GUI to change display units). There’s an example of using template helpers earlier in this thread.
min and max can be dynamically set to another entity. Check the docs. Example and config specifics.
Thanks a million @neponn!
Exactly what I needed. And so simple as well.
I see what you mean about the icon being in the wrong position but I can live without the icon as I will have a label for the gauge anyways.
Thanks for the tips. Was avoiding creating a new sensor to fill my database. Will check out the GUI unit conversion, did not realise that was a function (unless it just changes the unit with no conversion).
I have to congratulate you @neponn for the simplicity in adjusting this card.
Very minimal code to get good results.
Card scales perfectly on all screen sizes even when squished
Good choice in using HA tile card as a base
Just a note, colour thresholds used in other cards translate a bit differently but it is intuitive.
Hi, this is great, the only suggestion I have is to allow setting the value through a jinja template OR set an entity as its source. I would like to use an entity attr as the data source.
I saw that you were talking about adding templating. Just thought I would throw this idea in there.
Something like:
type: custom:ring-tile
# value or entity required
#entity:
value: {{ state_attr('sensor.was_110_temperatures', 'temp2') }}
I know I can create a template sensor helper, but it would be great to be able to set the value via a template and configure state-class and such.
Hey @baudneo. Glad you like it! Templating is low on the priority list right now, but I do plan to add support for attributes relatively soon. state_class and so on should be set at the entity level, not in the front end.
How will you know the state class of the attr though? Some entities might have attrs that arent the same state class as the entity exposing the attrs (yes this is wrong, but it happens). If the card assumes the same state class as the entity, wont it show incorrectly?
Example: entity has a state class of termperature and exposes temperature attrs, RX/TX SNR, TX/RX voltage and some other stats on an optical XGS-PON interface.
next that earlier mentioned (and raised) issue of the source map, I now also notice that there are 2 external connections made when loading this resource:
tbh, I am not sure what that exactly means, but Ive never seen something like that before in my custom cards, and not a big fan of loading external stuff. Let alone from G…