this post was submitted on 24 Mar 2024
24 points (100.0% liked)

homeassistant

14853 readers
5 users here now

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @[email protected]

founded 2 years ago
MODERATORS
 

how can I send the contents of an entity via xmpp or a matrix notification? For example, the entity is image.ipcam_sued_person (frigate) and contains a snapshot. jpg.

how can I send it as an image with xmpp.

message: { ?????????} or with path: ???

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

I managed it:

alias: Frigate - Notification
description: ""
trigger:
  - platform: mqtt
    topic: frigate/events
condition:
  - condition: template
    value_template: "{{ trigger.payload_json[\"type\"] == \"end\" }}"
action:
  - service: notify.jabber
    data:
      title: "Kamera {{trigger.payload_json['after']['camera']}} "
      message: >-
        Objekt {{trigger.payload_json['after']['label']}} erkannt von Kamera
        {{trigger.payload_json['after']['camera']}}.
      data:
        path: >-
          /mnt/sandisk1TB/frigate/clips/{{trigger.payload_json['after']['camera']}}-{{trigger.payload_json['after']['id']}}.jpg
[–] [email protected] 2 points 1 year ago

Nice one! JSON and templates together are unwieldy AF, you’re braver than me