Alarmo / Telegram: Send message including device information in case of an event

Alarmo has included its own actions based on certain events, for example when it fails to arm. This way I can send a Telegram message if such an event occurs.
This is great but as I have over 30 door and window sensors I would like to include the device’s friendly name and its area location to the Telegram message as this would make it much easier to know where I left a door or windows open which caused the arming process to fail.
Or even if someone breaks in into the house it would be helpful to know where the event happened.

Thinking it over I can imagine it won’t be that easy as Alarmo is handling events in its own way, I guess. Any ideas on how to accomplish this? Or maybe someone already has done something similiar?

Thanks in advance!

If the event is seen as a trigger in HA, you can set up one automation that is triggered by any of those and then send the triggering device/entity via Telegram.

Here’s one I have that sends me ESPHome devices that are offline in a very similar way.

- id: '2021112301'
  alias: ESPHome downtime detector
  description: Send a Telegram if anything ESPHome based is unavailable
  trigger:
  - entity_id:
      - binary_sensor.hallwaylampstatus
      - binary_sensor.deskledsstatus
      - binary_sensor.jbedsidelampstatus
      - binary_sensor.kitchencupboardlightsstatus
      - binary_sensor.tcamstatus
      - binary_sensor.deskcupboardledsstatus
      - binary_sensor.ibedsidelampstatus
      - binary_sensor.tsofalightsstatus
      - binary_sensor.girls_heater_3_status
      - binary_sensor.cinemalightstatus
      - binary_sensor.pianolampstatus
      - binary_sensor.windowlampstatus
      - binary_sensor.cupboardlampstatus
    platform: state
    to: 'off'
    from: 'on'
    for: 00:00:10
  action:
  - service: telegram_bot.send_message
    data_template: 
       target: 123456789
       parse_mode: html
       message: "Warning, {{ trigger.to_state.entity_id.split('_')[1] }} is showing unavailble."
  mode: single

That’s the problem.
The Alarmo event of failing to arm is not available in HA, it’s an Alarmo native event.
The Alarmo event of an alarm being triggered on the other hand is indeed available in HA, but it’s not the end device that can be taken as a trigger in such an event but the Alarmo entity itself.
Which makes it even more complicated, if not impossible I guess?

I see the issue a little more. I wonder if the Alarmo is actually using MQTT to send it’s trigger. In which case if you can see the topic(s) there may well be a payload in the message that shows the Alarmo source device. It would then be fairly straightforward in Node-red to pull that payload detail out and trigger a Telegram or feed it back to HA to do similar.