Let alarm_trigger start a series of events

I want to start a series of events when my larm is triggered, I tried the approach to filter by a switch by “alarm_trigger” but it didnt work.

Hope someone can guide me whats wrong.


I don’t know what are the services you want to call when the alarm is triggered but I would start with something like this.
image

[{"id":"39b83ee2.ad4052","type":"trigger-state","z":"5b8207c0.dcb8c8","name":"Alarm State","server":"e447d17a.16a64","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"alarm_control_panel.ha_alarm","entityidfiltertype":"exact","debugenabled":false,"constraints":[],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":170,"y":860,"wires":[["3f944544.0983fa"],[]]},{"id":"3f944544.0983fa","type":"switch","z":"5b8207c0.dcb8c8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"triggered","vt":"str"},{"t":"eq","v":"disarmed","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":350,"y":860,"wires":[["9bc6d704.9547e8","69a802e0.47b8fc"],[]]},{"id":"9bc6d704.9547e8","type":"api-call-service","z":"5b8207c0.dcb8c8","name":"play media","server":"e447d17a.16a64","version":1,"debugenabled":false,"service_domain":"media_player","service":"media_play","entityId":"media_player.chromecast_living","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":530,"y":780,"wires":[[]]},{"id":"69a802e0.47b8fc","type":"function","z":"5b8207c0.dcb8c8","name":"e mail","func":"\n\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":820,"wires":[[]]},{"id":"e447d17a.16a64","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false}]

Jesus, I hope I didn’t scared my neighbours when my outdoor speakers kicked in, thanks!
The email seams not to work now, has to figure out why it stopped.

Edit: some autofil crap has changed the email settings