If you go to Alarmo > actions > new action, you can click on task > ‘go to Yaml’.
Then you can use wildcards in the yaml code for message, e.g.:
The {{arm_mode}} alarm is triggered! Cause: {{open_sensors}}
Did not yet try it in something you are looking for but hope it helps…
Please also look at the following code that might help (the advanced-actions example):
No, I was told by the developer when I was trying to create the automation that it would not support things like horn volume or specific tone, but I could do it by simply calling a HA script.
This is not what I said, or at least not what I meant.
What I said was:
You should be able to define an action in Alarmo for controlling your siren.
But in the editor you only find the ability to select the entity and the action turn on/turn off.
For controlling volume and tone, you need to switch the editor to YAML mode and add the missing parameters yourself.
You can switch between UI and YAML mode by clicking this button:
Solved, sort of. I bifurcated it. Called the HA script to do the chime volume and tone and then fire the chime, and also to notify phones and turn off the chime when the door is subsequently closed. Used Alarmo Action → Notifications to broadcast to all speakers including the wildcard specifying which door.
Only thing I can’t do with this is control the Google speaker volume for the broadcast, but homefully the volumes they were set at are correct.
service: tts.google_say
data:
message: Door opened! {{open_sensors}}
entity_id: media_player.everywhere
You should, imho, set the call for the script in Alarmo, send the variables you need with them to the script and let the script run. This is the expected way, I’d say. That doesn’t mean there wouldn’t be other ways, as you already found one, but for simplicity and to avoid maintenance issues in the future, I’d advise to do it the “expected” way.
Or if you want to stay with the UI, see the screenshot above from @neliss. Go into YAML mode and add the data you additionally need to it. This additional data can only be added in YAML mode, but it can be added. So Alarmo can do as you want as well, you just need to write the additional data by hand in YAML mode.
I’m pretty sure the developer suggested that certain things I wanted to do would not be doable using yaml from Alarmo’s scripter. And if I knew how to send variables to my HA script, I guess this would be easy. But I’m very new at this, not a developer, not a programmer, and the documentation didn’t help me at all. Hence, my hybrid solution.
I just wanted to say “why don’t you ask for”, but I went back and read your first question, and indeed you’re asking for how to pass a variable. Sorry, didn’t see that!
So back to the screenshot above, where you put in YAML code. Open the YAML mode and set one of the two possibilities.
Here you call the script directly, eg. script.my_script
Both work equally, it’s just a personal choice which one to use. What I called my_open_sensors is the name of the variable you set and want to use later in your script, eg. like {{ my_open_sensors }} which will be filled with the content of the Alarmo template {{ open_sensors }}.
Has someone found a way to send an image from a cam motion alert event?
…i ask more if i wish assign also the cams to other sensors like doors open, or ld2410 movement detection?
I’m not sure Alarmo is suitable for the purpose… any advice/hint to puts me in the right way?
(for sure is possible with automations, but then Alarmo has no sense anymore…)
I have a question. I try to use two modes (I only have two + disarmed) for my alarm system, active away and active night. In my opinion, everything is configured and should work. I have three areas, all in active away and two in active night.
Currently it’s not possible to activate active night. It’s not present in UI and not possible to activate with script.
But when I put all areas in the active night then it works and I am able to select active night in UI.
Has everybody an idea?
Hi all,
I intend to use Alarmo as a mains switch for all my automations. If alarm panel is set to disarmed, I would like all my automations to be disabled. I am trying the following: