I have made an automation that all users receive a notification on there phone when the alarm status is changed.
If the alarm is disarmed I receive the message: "Alarm disarmed by user’.
But I want to translate to status to Dutch like this:
Disarmed = uitgeschakeld
armed_home = Ingeschakeld thuis
armed_away = Ingeschakeld weg
After some googling I tried this but it’s not working:
alias: TEST ALARM
description: ""
trigger:
- platform: state
entity_id:
- alarm_control_panel.verisure_alarm
condition: []
action:
- service: notify.notify
data:
message: >-
Alarm {% if is_state_attr('alarm_control_panel.verisure_alarm', 'state',
'armed_home') %} ingeschakeld thuis {% elif
is_state_attr('alarm_control_panel.verisure_alarm', 'state',
'armed_away') %} ingeschakeld weg {% elif
is_state_attr('alarm_control_panel.verisure_alarm', 'state', 'disarmed') %}
uitgeschakeld {% else %} error {% endif %} door
{{trigger.to_state.attributes.changed_by }}
title: Verisure / Home Assistant
mode: single
Anyone who can help?