Access attributes using "trigger state" in Node Red

Hi all,

i tried to do some automations using “azimuth” attribute of the sun.sun entitiy using the “trigger state” function in Node-Red.

Unfortuneately iam not sure how to access attributes. I tried several differen configurations and none worked.

This is what i have at the moment:

Maybe you can give me a hint.

Thank you very much!

Cheers
Tom

almost correct. need to use correct location of the property also works better if you change string to number.

image

2 Likes

Hi serkank,

thank you very much, this works like a charm!

Cheers
Tom