in home asssitant I want to have the local time for this event "stateattr(''sun.sun'',…
- User
in home asssitant I want to have the local time for this event "state_attr(''sun.sun'', ''next_setting'')"
Assistant
To display the local time of the next sunset in Home Assistant, you can use the
sun.sunentity'snext_settingattribute and format it using templates. Here's how to do it:
Option 1: In a Lovelace Markdown Card
Add this to a Markdown card in your dashboard:
yaml
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.