Skip to content

Javascript not executing in nested service_data keys #480

Answered by exetico
hilburn asked this question in Q&A
Discussion options

You must be logged in to vote

Here's a working example with the suggested | > solution. I know it's not 100% clear that it's possibly to do it like that, but that's how we're allowing you to parse data through with the data property. We're still "stuck" in the "service_data" area, but at least we're not trying to remove anything from a action/service call like this, and therefore, it's possible to do like this.

              tap_action:
                action: call-service
                service: notify.persistent_notification
                service_data:
                  title: Testing
                  data: |
                    > console.log("element.id", element.id);
                    return {"notification_i…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@exetico
Comment options

@hilburn
Comment options

@exetico
Comment options

@exetico
Comment options

Answer selected by hilburn
@exetico
Comment options

@hilburn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants