I’m still new to jinaj2 and templating generally, but have managed to work through some semi complex data to parse out for example, data from a weather entity to provide me with a morning weather update.
This is fine when the data is in entities that I can play with using dev tools.
However, I now want to parse data from a service call that generates an event:-
I can get the output by listening for the event, but how do I go about using the dev tools template to start working out how to break it apart to extract what I want ?
At the moment, I’m use just using a basic automation to prove I can get some of the values like so:-
alias: Event Test
description: ""
trigger:
- platform: event
event_type: zha_devices
condition: []
action:
- device_id: a47f7db07a4a9a7634ac807ab9d12457
domain: mobile_app
type: notify
title: test
message: "{{trigger.event.data.devices[0].ieee }}"
mode: single