Hey tom_I,
I’m not picky with where the data is logged. I just want to see it.
Your code sample above worked great after I added the missing “)”.
Thanks!
Not totally sure why I can’t migrate that same message string over to the system_log.write service. When I do, I just get the string output exactly as it went in. Both cases with their respective results below.
name: 'Nightstand HS State'
message: "{{ state_attr('light.hue_color_nightstand', 'hs_color') }}"
#### LOGBOOK RESULT ####
Nightstand HS State (39.818, 43.137)
And the system log version that doesn’t work
message: "{{ state_attr('light.hue_color_nightstand', 'hs_color') }}"
#### SYSTEM LOG RESULT ####
2020-10-26 17:06:31 ERROR (MainThread) [homeassistant.components.system_log.external] {{ state_attr('light.hue_color_nightstand', 'hs_color') }}