Hi,
Maybe someone can help, just trying to determine difference between using state.entity.attribute and state_attr(‘entity’,‘attribute’)
For example given this:
action: notify.mobile_app_pixel_8
data:
message: |-
{{ states.input_boolean.testing.last_changed }}
{{ state_attr('input_boolean.testing','last_changed') }}
data:
actions:
- action: test
title: please press me
title: Test
In the notification message I receive the correct timestamp for states.input_boolean.testing.last_changed but for state_attr I get “None”
Thanks!