Notify when alarm is triggered


I’m trying to get notification when alarm is triggered. I am running HassOS 3.5 with an Envisalink module. I’ve successfully send an IOS notification based on a binary sensor state change but I cannot figure where the issue is in the following code in automation.yaml (getting: Invalid config for [automation]: [platform] is an invalid option for [automation] error) :

alias: AlarmTriggered
platform: state
entity_id: alarm_control_panel.home_alarm
to: ‘triggered’
service: notify.ios_iphone_franck
title: “Alarm is on”
message: “Alarm, Alarm, Alarm”

What am I doing wrong? Do I need to do anything else


Welcome to the forums. Please have a read of this, How to help us help you - or How to ask a good question taking particular note of point eleven. Then edit your post and format your pasted code. It really does help as indentation is important in yaml.

And given the error OP posted that’s almost certainly what the issue is here. Although I suppose that’s not saying much because most issues are related to indentation anyway :stuck_out_tongue:

Hi I am trying to set this up on my alarm. What’s the proper configuration?
I am getting errors. :frowning: