Can’t get an attribute with a name from more than one word.
sa_battery:
friendly_name: Sa battery
value_template: >-
{{ state_attr('sensor.sa', 'battery level') }}
sa_sn:
friendly_name: Sa SN
value_template: >-
{{ state_attr('sensor.sa', 'sn') }}
In first template got ‘unknown’, in second - ‘672940’