I’m building a H-stack of additional weather info (wind, humidity, rain) to display under a standard weather card, however I feel like I’m going out of my mind trying to get a single small simple card that shows the current wind status, with both speed and bearing, in a style that matches a plain sensor card.
A weather entity contains separate attributes for wind speed and bearing, but when I check any weather entity in Settings > Entities it shows a single combined “Wind speed” attribute with a value of “<speed> <unit> (<bearing>)”, and even autoconverts a degree bearing to a compass direction. That’s what I want. However, this exact same output does not seem to be available on any native Lovelace card, nor anywhere else outside a weather entity detail pane. Am I missing something here?
The OpenWeatherMap integration provides separate sensor entities for wind speed and bearing. Its wind speed sensor allows the unit of measurement and precision to be changed for display, while the wind bearing sensor displays in degrees but only allows display precision change, not unit of measurement. HASS clearly has built-in support for converting from degrees to compass direction since it does so for the detail view of any weather entity, but does not allow it here for some reason, so (with thanks to some very helpful forum posts) I’ve added a template sensor to get around this limitation.
(Separately, the template helper sensor provides historical values just fine, but enabling graph on its sensor card only shows “no state history found”. I’m guessing this may be due to not being able to plot the string value numerically?)
I can use a sensor card to display either wind value individually no worries. Speed and bearing display on separate cards no worries either. Trying to combine the two in a way that displays consistently alongside other basic weather-related sensor cards in a H-stack seems utterly absurdly frustrating.
V-stacking the individual speed/bearing sensors within the H-stack blows out the H-stack height.
Creating a new template sensor outputting combined speed and compass bearing means either not displaying a unit of measurement for the wind speed, or manually concatenating it between the speed and bearing. Both options break consistency, either by not having a unit of measurement, or by the unit of measurement being in the same font as the state value.
Using an entities card to display both sensors has its own problems; if the card name is set it displays in a different style to the name on a sensor card, and if the card icon is set it displays on the opposite side to a plain sensor card and in a different colour. Leaving the name/icon blank would be acceptable if there was a way to hide the individual entity/sensor names, but this doesn’t seem possible when setting them to blank/null/emptystr reverts to the sensor’s name (which is then too wide to fit name+value within the card).
I’ve also played around with the “multiple-entity-row” package on HACS, but since it extends the entities card it inherits the same issues with card title style and icon colour/alignment.
Is there something obvious I’ve missed?
Is there a way to get a standard Lovelace card to show the combined wind speed+bearing attribute from a weather entity’s detail view?
Is there a way to prevent displaying an entity name within an entities card?
Is there a way to append a second attribute/state in-line after a sensor/entity/entities card’s unit of measurement while retaining the correct value/unit styles?
It seems wild to me that HASS will provide basically the exact output I’m trying to achieve, but only within the detail view of a weather entity. I’ve been trying to keep things as vanilla as possible so far, but do I need to just bite the bullet and wrap my head around building a custom card?
If I do need to go down the custom card route is there a template/skel available anywhere to match the format/styles of a standard sensor card? I had a bit of a look through the frontend source tree but to my lay eyes the standard cards seem built in a very different way. Worst-case I’ll try digging into how the multiple-entity-row package extends the built-in entities card and see if I can adapt that into extending the sensor card to display a second value after the UoM, but hoping someone might have a better idea.
Any thoughts/suggestions/feedback would be greatly appreciated.
Thanks in advance.