Complete Newbie - Automation not showing in HA UI or working once saved

Hi All,

I’m completely new to Home Assistant - and can’t say I yet “get it” … but I’ve followed the “idiot” guides and believe I’m up and running (on a Pi4)

I’ve installed the iOS app on my phone and initially “all” I’m looking to do is cover a use-case where Home Assistant can receive a webhook request or REST API request (from my internal network) and have this trigger fire a Push notification to my phone. After this, I then intend to almost do the opposite - in that I want to use my phone’s geo-location to trigger a REST API call to another service I’ve got running.

I can see iOS Push’s land on my phone when I call the notify.mobile_app_ service via the developer tools - but I’m stuck beyond this.

If I go to “Configuration > Automations” and save a new automation that has;

  1. a “webhook” trigger which I’ve just called “testnotify”
  2. an action of action type “Call Service”
  3. the service as “notify.mobile_app_”, with service data as “title: A push Title message: A push message” and hit the “Save” button

… this appears to save as follows to confg\automations.yaml;

  • id: ‘1601295328362’
    alias: 2909TestWH
    description: ‘’
    trigger:
    • platform: webhook
      webhook_id: testnotify
      condition: []
      action:
    • service: notify.mobile_app_
      data:
      title: A push Title
      message: A push message
      mode: single

but nothing is showing in the “Automations” tab in the HA UI.

Likewise, if I call the webhook via http://{{my_pi_ip}}:8123/api/webhook/, I get a 200 response, but nothing happens, but I do see the following in the Core System logs;

“2020-09-27 20:22:28 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook testnotify from <my_pi_IP>”

Can anyone advise me please?

a) Why doesn’t the automation I save show in the HA UI?
b) Sounds from the log entry like I need to “register” a webhook. What does this mean and how do I do it? Maybe I’m just missing something that may be obvious to someone not new about “setting up webhooks” …?

Appreciate any help

Cliff

Anyone? Have I posted this in the right area of the forum?

I’d love to help but have zero experience with webhooks, so therefor did not respond.
Your automations.yaml is a little confusing since it seems you used some markup in your post. Embed your code in 3 times ` to have it shown like this:

- id: '1601295328362'
  alias: 2909TestWH
  description: ''
  trigger:
  - platform: webhook
    webhook_id: testnotify
  condition: []
  action:
  - service: notify.mobile_app_
    data:
      title: A push Title
      message: A push message
  mode: single

I assume you created the code using the GUI and it looks like the sample above (indents are important as are the types of quotes as used).

Having that said. I have no experience in the usage of webhook. Have you checked your log to see if there are any errors (Configuration -> Logs). Perhaps clear the log and run your automation to see the logging more easily.

Hi - Thanks for your reply :slight_smile:

So - Yes, this was created via the GUI, the entry in the automations.yaml shows as follows (hopefully will make more sense now its formatted in the post - I’ve sanitised my phone name for privacy);

- id: '1601295328362'
  alias: 2909TestWH
  description: ''
  trigger:
  - platform: webhook
    webhook_id: testnotify
  condition: []
  action:
  - service: notify.mobile_app_myPhoneName
    data:
      title: A push Title
      message: A push message
  mode: single

The Configurations - Logs shows much the same message as I posted from the core system logs (again, sanitised my ip for privacy):

Logger: homeassistant.components.webhook
Source: components/webhook/__init__.py:84
Integration: Webhook ([documentation], [issues])
First occurred: September 27, 2020, 8:22:28 PM (5 occurrences)
Last logged: September 28, 2020, 4:20:00 PM

* Received message for unregistered webhook testnotify from 192.my_pi-IP

Does this help diagnose? Is there anything else I can do to diagnose?