Hi,
Thanks for this very good blueprint.
I have a question about sun elevation. I set the automation to close my shutters at -6 degree, but the automation is not triggered at -6 (to_state) but approximately at -7. The from_state is -6.
Someone has an idea about it and could explain it to me ?
trigger:
platform: template
entity_id: sun.sun
from_state:
entity_id: sun.sun
state: below_horizon
attributes:
next_dawn: '2024-07-30T03:23:15.048916+00:00'
next_dusk: '2024-07-30T19:46:36.739657+00:00'
next_midnight: '2024-07-29T23:35:28+00:00'
next_noon: '2024-07-30T11:35:28+00:00'
next_rising: '2024-07-30T04:01:22.475289+00:00'
next_setting: '2024-07-30T19:08:41.843070+00:00'
elevation: -6
azimuth: 307.03
rising: false
friendly_name: Sun
last_changed: '2024-07-29T19:14:05.620670+00:00'
last_reported: '2024-07-29T19:48:11.529808+00:00'
last_updated: '2024-07-29T19:48:11.529808+00:00'
context:
id: 01J400JFM9D1BBQDQXCZDCS3MC
parent_id: null
user_id: null
to_state:
entity_id: sun.sun
state: below_horizon
attributes:
next_dawn: '2024-07-30T03:23:15.048916+00:00'
next_dusk: '2024-07-30T19:46:36.739657+00:00'
next_midnight: '2024-07-29T23:35:28+00:00'
next_noon: '2024-07-30T11:35:28+00:00'
next_rising: '2024-07-30T04:01:22.475289+00:00'
next_setting: '2024-07-30T19:08:41.843070+00:00'
elevation: -7.05
azimuth: 308.62
rising: false
friendly_name: Sun
last_changed: '2024-07-29T19:14:05.620670+00:00'
last_reported: '2024-07-29T19:56:11.531017+00:00'
last_updated: '2024-07-29T19:56:11.531017+00:00'
context:
id: 01J40114CB126SPCWT4G0CK240
parent_id: null
user_id: null
id: t_close_5
idx: '11'
alias: null
for:
__type: <class 'datetime.timedelta'>
total_seconds: 0
description: sun.sun via template