My notification script is used in a lot of automations, so it needs to be very customizable - and I'm hoping to add actionable buttons to the mix.
I know how to hard code these, using the "data" section of a notify action, but I'd like to use a selector field to populate this instead. I've tried using a Text selector, but no buttons show up.
selector:
text:
multiline: true
name: Data
default: |-
actions:
- action: test_okay
title: "Okay"```
But whenever I try to add the {{ data }} to the action, it turns to this: "[object Object]": null
```action: notify.notify
metadata: {}
data:
title: "{{ title }}"
message: "{{ agent.response.speech.plain.speech }}"
data:
"[object Object]": null
enabled: true```
Any help would be appreciated- either how to solve the issue, or a better way of tackling it.