Trigger automation from webhook/QR code without having the companion app

I’d like to have a QR code in my house that guests could scan without needing to have anything configured on their device. I do have a cloudflare tunnel set up.

A few use cases:

  • When I have family from out of town, I’d like them to be able to scan a QR code to tell the house someone is home.
  • I’d like my cleaners to be able to scan the code when they finish so I know they are done.

I haven’t been able to find a way to do this. Does anyone know of a way to do this?

Hello Steven,

Well you should be able to craft a webhook to do that.

All you need is a webhook that does a helper boolean or something. Then an automation that looks for the boolean to change, does your whatver, and resets the boolean. Probably a dead period before the thing is reset to prevent multiple bumps, just guessing.

Get the webhook working then make a QR for it.

I’ve tried this, but keep getting a 405 error. I’m not an expert, but it’s saying it doesn’t accept HTTP GET, only POST.

I’ve added GET to the allowed methods, but still doesn’t seem to work:

trigger: webhook
allowed_methods:
  - POST
  - PUT
  - GET
local_only: true
webhook_id: "-XXXXXXXXX"

Am I missing something?

I was missing the local_only tag. It seems to be working now. Thanks for helping me think this through.

1 Like