Skip to content

wallos webhooks and home assistant #383

Answered by koenigderorangen
lennon101 asked this question in Q&A
Discussion options

You must be logged in to vote

I fixed it by examining how the PHP code handles the custom header field, specifying the custom header in this format:

With that, I'm receiving the payload as JSON in Home Assistant:

Extra: My automation code for sending notifications over the Home Assistant app to my phone looks like this:

alias: Notify Upcoming Subscriptions
description: Send notifications for upcoming subscription payments.
trigger:
  - platform: webhook
    webhook_id: YOURWEBHOOKID
    allowed_methods:
      - POST
      - PUT
    local_only: true
action:
  - repeat:
      count: "{{ trigger.json.subscriptions | length }}"
      sequence:
        - variables:
            subscription: "{{ trigger.json.subscriptions…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@lennon101
Comment options

@koenigderorangen
Comment options

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