Problem with state translation

I have an automation where several sensors triggers a notification if going to “open”.

I’d like the sensor state to be sent translated, not the standard english. Ive tried but failed.

data:
  message: >-
    {{ trigger.to_state.attributes.friendly_name }}  {{ trigger.to_state.state }}
  title: Doors
  data:
    ttl: 0
    priority: high
    notification_icon: mdi:door-open
    channel: General
    group: Door
    color: red
action: notify.mobile_app_***

state_translated() might be what you want. look at this: Templating - Home Assistant

if so, this might be what you want

{{ state_translated(trigger.to_state.entity_id) }}

Thanks a lot! Couldn’t get the formatting correct :grin:

1 Like