During a tag_scanned event I get an ID which is formatted as a1a4bb240f7ecbd60cbc3515164b0168 and I want to use this in an action IE
- data:
song_str: >-
read:
'simpsons:d=4,o=5,b=160:32p,c.6,e6,f#6,8a6,g.6,e6,c6,8a,8f#,8f#,8f#,2g'
action: "esphome.{{trigger.event.data.device_id}}_play_rtttl"
But this fails, I'm wondering if I need to change the device_id to the device_name?
I've tried
message: "esphome.{{ device_attr('trigger.event.data.device_id', 'id') }}_play_rtttl"
and
name..
Essentially I want the device that creates the tag_scanned to have an automation delivered at it.. Perhaps I should be using blueprints but right now I want to get my head around the ID's assigned by HA and how to access those properties reliably (IE can I target a device by it's ID (as represented above) or do I need some other ID?
I was expecting the ID to be ``esphome_web_dee4ac` as that's what is presented to me as the humanly readable name in HA