#Capture data from event and sent as notification

2 messages · Page 1 of 1 (latest)

little crag
#

Hello, i want to capture some event data and see the content. but i cant keep looking all the time. So i want to create an automation when there is an event, send the data/content as notification to phone. how can i do this?
i know when i listen, i get in this format. i want only whats inside data.

event_type: home_connect_alt_event
data:
  device_id: some_string
  key: BSH.Common.Event.ProgramAborted
  value: BSH.Common.EnumType.EventPresentState.Present
origin: LOCAL
time_fired: "2024-10-08T16:10:49.885188+00:00"
context:
  id: some_string
  parent_id: null
  user_id: null
eternal stream
#

trigger: event, with type of home_connect_alt_event
Then build your message like:

Device ID: {{ trigger.event.data.device_id }}, key: {{ trigger.event.data.key }}, value: {{ trigger.event.data.value }}

And send that.