Something strange that I don’t understand is going on with the webhooks.
Initially, I set up webhooks to use with Surveilance Station action rule like this:
https://10.0.1.32:8123/api/webhook/south_terrace_camera
As per my previous posts, the webook calls from SS are now resulting in a ‘405: Method Not Allowed’ message rather than a ‘success’ message.
Looking at this further it seems that HA has created some cloud webooks for me!
The code that I believe caused this is like this:
- alias: South Terrace Camera Detection
initial_state: 'on'
trigger:
- platform: webhook
webhook_id: south_terrace_camera
condition:
- condition: state
entity_id: input_boolean.south_terrace_camera_active
state: 'on'
action:
- service: tts.google_say
data:
entity_id: media_player.kitchen_speaker
message: "Motion detected by South Terrace camera"
- service: notify.mobile_app_ash_x
data:
message: "South Terrace camera motion detected"
How could this have happened?
Each of the webhooks has a generated link:
https://hooks.nabu.casa/gAAAAABdI???????????????????????????????????????????????????????????dItQ0VvG7LOC83VnfUm38=
Now, this would be fine, except that I want to keep everything in my own network rather than use the cloud service, and, the webook still returns the same 405: Method Not Allowed
.
Anyone have any idea what’s going on?
I’ve tested this and creating the following automation…
- alias: Test Camera Detection
initial_state: 'on'
trigger:
- platform: webhook
webhook_id: test_camera_hook
condition:
- condition: state
entity_id: input_boolean.south_terrace_camera_active
state: 'on'
action:
- service: tts.google_say
data:
entity_id: media_player.kitchen_speaker
message: "Motion detected by Webhook"
- service: notify.mobile_app_ash_x
data:
message: "Webhook motion detected"
…as a test, resulted in the following after reloading automations!
Is it now the case that webhooks are solely for cloud use?
Previously, cloud webhooks had to be created through the front end. It now seems the ‘the hook’ is now generated just by adding a webhook triggered automation.