When the sun integration sunrise and sunset times are shown in an entities card, it says things like “in 15 hours” or even just “tomorrow”. I know the sun will rise tomorrow, I would prefer to know at exactly what time.
The entity value is an exact time and I can see it by tapping the entity in the card, but I can’t see a way to change the default display format. I looked for another card type but a Entity card while it does show the time shows only one entity, in big font with the date as well, so not ideal and a Glance card shows the same data as an Entities card.
Is there a way to have this show the actual time so it can be seen at a glance?
Certain cards react like this as the device_class = timestamp
e.g. the single entity card does not where entites-card does
Depends on what you want to do with it, see above card as an alternative, else you can customize the sunrise/set sensor or create a template sensor yourselves based on them without timestamp
@CaptTom, where did you define these sensors? I’m getting “Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 13).” error when I add these to a yaml file.
You’d have to post that section (which includes line 13) to make sense of that error. But one thing to consider whenever you’re dealing with YAML is proper line indentation.
I have the same issue, I reload, I have even restarted all of HA, but without any success. I try to add the sensors to a picture element but the sensors doesnt show in the list.
No errors in logs etc so I figure I am missing something
Have you gotten it to work ?
I think there is a bit simpler solution. When you add or edit the etities list panel for dashboard, click the “Show code editor” (I’m not sure with the exact translation) at the bottom left.
for each entity then add formatting configuration variable (“format”) as follows
type: entities
entities:
- entity: sensor.sun_next_dawn
format: time
- entity: sensor.sun_next_rising
format: time
- entity: sensor.sun_next_noon
format: time
- entity: sensor.sun_next_dusk
format: time
- entity: sensor.sun_next_setting
format: time
- entity: sensor.sun_next_midnight
format: time
And if I understood well, that’s it!
For all possibilities see documentation Entities card - Home Assistant .
Hope it helped.
The tides come from a custom component, NOAA Tides:
The wind speed comes from the National Weather Service integration. Both are US-specific, as far as I know. I think you can also get the wind speed at a specific weather buoy from the NOAA Tides component.
THIS.
This is the real solution. Displaying the time as time really shouldn’t require setting up template sensors or custom cards. As mentioned, the value is there, you just need to override the “let me guess what format is best suited for this entity” magic. Thank you so much for this!
Bonjour et Grand Merci
Dans ma naîveté de Néo HASS-guy, je pensais que Sun me donnerait SunRise et SunSet fingers in the nose. J’admirais AT : et OFFSET : 00:25:00 qui me dispensaient de savants calculs dans ces langues étrangères.
Quelle déception : Yaml me dit qu’il attend une Array et pas 00:25:00.
Vous indiquez une voie de sortie qui me réouvre l’horizon : Merci
Un de mes maitres en informatique avait cette affirmation totalement vérifiable : “Il n’y a pas à tortiller du cul pour chier droit” Et Paf !!!
Dans un nouvel environnement, le “chier droit” est absolument à redécouvrir.
Votre solution (dont je vous remercie encore) ne me serait pas venue à l’esprit sans un peu de bouscul(ation / age / …)
Mais je suis sûr qu’un jour viendra où cela m’apparaitra tout-à-fait naturel (un jour viendra, un jour d’épaules nues …/…)
Mais cet accouchement n’est pas sans douleur
PS : Je n’ai pas trouvé Sun Card dans HASS, où faut-il chercher pour trouver les Cartes Add-Ons ?