“pinned” I can get like that; '{{states.sensor.google_keep_XXXXXXXX.attributes.pinned}}'
without any trouble, but how do I get “lines”? '{{states.sensor.google_keep_XXXXXXXX.attributes.notes.lines}}'
That doesnt work…
The second option worked, but only in the template editor. I am trying to put the Attribute into the message body of a notify message, which then doesnt work.
service: notify.mobile_app_emils_s21
data:
title: Test
message: '{{ state_attr('sensor.google_keep_XXXXXXXX', 'notes')[0].lines }}'
For that I am getting this error message:
“Failed to call service notify.mobile_app_emils_s21. template value should be a string for dictionary value @ data[‘message’]. Got None”
Do I have to get the array into a string? Is it not possible to use arrays as message?