Is it possible to have it visualized?
- condition: numeric_state
entity_id: sun.sun
value_template: ‘{{ state.attributes.elevation }}’
below: -5
Is it possible to have it visualized?
Maybe I’m misunderstanding the question but based on the title, below are all of the sun attributes, wouldn’t something in the UI showing the date/time of the next sun setting give you an indication of when the horizon state will change?
Apologies if I am misunderstanding.
next_dawn: 2017-05-06T09:30:36+00:00 next_setting: 2017-05-06T00:06:56+00:00 <--- Should trigger the change from above horizon to below horizon next_dusk: 2017-05-06T00:36:50+00:00 next_noon: 2017-05-06T17:04:16+00:00 friendly_name: Sun next_rising: 2017-05-06T10:00:35+00:00 <--- and vice versa next_midnight: 2017-05-06T05:04:13+00:00 azimuth: 220.51 elevation: 61.23
yes this I would like to have.
In my automation I want to know when the value -5 triggers the event. How to have this in the front-end visible?
I think a sensor template should work, add it to a group or view so its visible in the UI.
- platform: template
sensor:
sun_elevation:
value_template: '{{ states.sun.sun.attributes.elevation }}'
friendly_name: "Sun Elevation"
can I add the below adjustment?
Not exactly an answer but you can always add into the actions e-mail or telegram notification. That way you will know when the event happened and can even include what triggered the event. I always put telegram notification into my new rules to see if triggers and conditions work as expected and only then put other actions in place.
how to do this (telegram)?