I want to send a notification including who change the mode, based on the code. Is this possible?
Impossible to say as you have provided insufficient details about your alarm integration, sensor entity id’s that store the code, notifiers you use, etc…
I have been using home assistant for about a week. This is what I have so far:
alias: 'HA Alarm System - Notification: Disarmed'
description: ''
trigger:
- platform: device
device_id: 86db92e3d7c1e39bf527a88b8a92ec17
domain: alarm_control_panel
entity_id: alarm_control_panel.alarmo
type: disarmed
condition: []
action:
- service: notify.mobile_app_celular_jesus
data:
message: Alarm System Disarmed at {{ now().strftime('%H:%M %A %d %B %Y') }}
title: HA Alarm System
mode: single
I want to add to the message who disarmed the alarm, based on the disarm code.