noob question: I’d like to put the time of the next dawn/next dusk in an entities card from the sun component. I am not sure how to extract this information from the component, although i feel this should be quite easy! In my ui-lovelace.yaml I’ve tried:
views:
- title: Climate
cards:
- type: entities
title: Solar info
entities:
- entity: sun.next_dusk
- entity: sun.next_dawn
In my configuration.yaml I also have
sun:
And i am getting the “Entity not available, etc” highlighted in yellow in the output
Thanks finity, i gave it a go without any success, although i am unsure my implementation was correct. I copied the js file to /config/www/ and included this at the top of my ui-lovelace.yaml:
This way you can not only display it - like @jamq’s solution does and I have a few of these myself - it also allows you to refer to the sensors in automations.
And as much as I like Lovelace, I find myself too often trying to ‘put programmatic approaches’ into what I think I should keep to ‘just setting up display functionality’.