@maurizio53 wrote:
In my automations i am using this template to turn on lights when the sun elevation is at a certain degree:
value_template: '{{ state_attr("sun.sun", "elevation") < -6 }}'
Actually i am using the attributes of the sun device, but now i’d like to use the sun2 custom component which creates a sensor called sensor.elevation.
How to change that value template to use the state of this sensor ?
Thanks in advance… always learning with templates and always having headaches…
Posts: 3
Participants: 2