I am trying to move my notification setup from Telegram to native Home Assistant app.
What I am trying to achieve is, that when nobody is home I would like a notification “Nobody is home” and a button to activate the alarm.
This is the code so far:
- id: '1632336473143'
alias: Ingen hjemme notifikation
description: ''
trigger:
- platform: state
entity_id: input_boolean.house_mode
from: 'on'
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
to: 'off'
condition: []
action:
- service: notify.all_devices
data:
message: Ingen hjemme
data:
actions:
- action: ACTIVATE_ALARM
title: Aktivér alarm
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: ACTIVATE_ALARM
continue_on_timeout: true
- service: input_boolean.turn_on
target:
entity_id: input_boolean.alarm_mode
- service: notify.all_devices
data:
message: Alarm slået til
mode: single
This works in the sense that I do get a notification, but no visible button. If I then hard press the notification the buttons shows. Is there no option to get the button visible or have I made a mistake?