I’m trying to use a state attribute and strip it to use in a TTS action after a trigger in an automation. I am able to get the default ‘state’, but I’m trying to get the ‘Game’ attribute under this state.
service: tts.google_translate_say
data:
entity_id: media_player.google_home
language: nl
message: >-
De status is nu:
{{states.sensor.XXXXXX.state}}
I’ve tried state.Game, state|Game, but none of them seem to work and searching for state attributes only gives me examples of how to use attributes in a trigger or condition. Any help appreciated
The ‘Game’ attribute does exist under the sensor pulldown menu ‘Attributes’ and it is filled. Also changed it to another att. which exists, and it has the same outcome
Yes, dashboards are coded to make things look pretty. Among other things, applying a device class to a binary sensor can change the state from on to all these displayed values. The only place to find the actual state is in Developer Tools > States.