We’ll call it a feature. It’s not to do with the ring_size - it’s the info area, which is visible in sizes 1 and 2. I’ve done it this way for drop-in compatibility with the built-in tile card - you should be able to substitute ring-tile for tile (with ring-size: 1) and get an equivalent result.
The inbuilt tile card relies on the display_precision of the entity to determine how the info area is rendered. So the same techniques you can use to change how the info area looks for a tile card will work for ring-tile card.
I have to confess I don’t love this. Drop-in substitutability is important, but the inconsistency is a bit jarring. I may consider changing this in a future version (#60). Interested in what people think.
I understand and I also know how to handle it. For my understanding drop-in compatibility would also exist if additional parameters can overrule the default behavior.
New release - v1.0.6 - Animations and more tweaks!
A few more bug fixes and new features.
New features
Animations
Something nobody asked for… animations! State transitions for indicators and markers have been added for a fun flourish when the state of your rings change. Can be modified with a new CSS variable (--rt-transition) and respects system level “prefers reduced motion” setting.
Improved the algorithm that figures out ticks and labels for rings with a scale. Also added a new scale config block to tweaks, which you can use to influence the scale rendering algorithm. This is an advanced feature, which should only be needed in specific cases; you won’t always get the expected result.
You can now “colourise” any element in the ring to match the currently indicated colour using card_mod. This is achieved by making use of a new CSS variable (--rt-indicated-colour), which exposes the currently indicated colour.
Thanks for the kind words @alexsaas. It’s on my list, but to be honest, I need to focus on a few other things in the coming weeks, so it will probably be a while.
In the meantime, have you tried the suggestion I made on the related GitHub issue? I get that it wasn’t elegant, but it might be good if you have a try and tell me what you think. As with most things, there’s more than one way to do this, so a bit of feedback can be helpful.
Thank you for your feedback, so I know it hasn’t been forgotten.
No, I haven’t tried the workaround. Please forgive me, but I find it a little too cumbersome with additional helpers and an automation that triggers every second, throughout the entire timer duration.
Please don’t get me wrong, I appreciated your help back then.
For some minor cosmetics like making the ticks more visible and the number a little bit smaller I’m still testing all the provided CSS variables and the card_mod possibilities.
@neponn Love Ring Tile. Spent last day converting dashboards!
I have three atmospheric pressure sensors. None of the sensors are recognised by Ring Tile to create the standard atmosphere layout. Device class of all is Atmospheric_Pressure and unit hPa. Using latest Ring Tile version
My apologies - this is an oversight on my part. I have defaults defined for mbar and inHg for pressure sensors, but not hPa. I’ll fix this. In the mean time, you can fix this by adding in the missing config:
KNX scale is not yet implemented but it will be a percentage value from maximal load.
I prefer to scale all values between 0 and 100 to have a consistent view.
Thanks Nick,
I like the simplicity of your design and it works well.
I got all excited when i decided to try and incorporate the the custom:card-templater, because as I was bulding it the configuration card showed exactty what I wanted to achieve.
If I’ve understood what you are trying to do, you should find that your use case is already supported without custom:card-templater (with which I don’t have any experience). markers can be configured to reference the attribute of an entity (as can min and max as well). See the docs on configuration options and referencing entities and attributes.
Try the following (also a few suggested corrections):
type: custom:ring-tile
entity: sensor.outside_climate_temperature
#ring_entity: sensor.outside_climate_temperature # this isn't needed because it is the same entity
ring_size: 3
colorize_icon: true # this will be ignored because your config does not include an icon
top_element: marker # this was back to front; I suggest not including _with_unit
middle_element: value_with_unit # ring_ isn't needed - your ring_entity and entity are the same
bottom_element: name
#indicator_color: red # this is not a supported option
name: OUTSIDE
max: 30
min: 0
marker_color: ha_blue # you might like to try ha_* colours for consistency with HA
marker2_color: ha_red
scale: ticks_with_labels
marker:
entity: sensor.th_maxs_mins
attribute: out_temp_min
marker2:
entity: sensor.th_maxs_mins
attribute: out_temp_max
Is it possible to change the used font of the text inside the card, and how could one achieve that? Currently for me, it doesn’t inherit my default theme font which bothers me a bit.
I like consistency…