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.