wallos webhooks and home assistant #383
-
This question might be better suited in the HA community, but I'm also hoping to get some advice here. Before I get started, is there any where that I can find documentation on the Wallos webhook? i.e what shape the data comes in etc? I'm trying to do some testing with the wallos webhook and using it to trigger a home assistant notification. HA has a webhook trigger but I'm struggling to understand how to extract the When Wallos sends a webhook, I get this in the HA automation traces (changed variables tab) triggering it manually:the config is currently set to the default and when I hit the test button, the HA automation actually fails to trigger at all. It only triggers when there is a real event. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi. Sorry for the delay. In theory it would be something like this: let's assume you have notification for 1 day before, you are using the default payload and you didn't change de default {{subscriptions}} iterator. Netflix and Spotify are up for payment tomorrow..
This is the resulting object you should receive on the webhook. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
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: