Working on moving my yaml automation to Node Red and I can’t figure out how to convert this automation:
trigger:
- platform: template
value_template: '{{ state_attr(''sun.sun'', ''elevation'') < 6 }}'
condition:
- condition: template
value_template: '{{ state_attr("sun.sun", "rising") == false }}'
action:
- data:
entity_id: light.outside_garage_light
service: light.turn_on
- data:
entity_id: light.pole_light
service: light.turn_on
- data:
entity_id: light.mailbox_light
service: light.turn_on
- data:
entity_id: light.corner_light
service: light.turn_on
The trigger and condition is what is tripping me up. I have been looking at the trigger state and event state. I’m just not sure how to access the two attributes used. I’m new to Node Red and still learning, but need some help with this.