Is there a way to "trigger" a simple Webhook?

Current Situation
I am using a Commercial Gateway that integrates various protocols (Z-Wave, ZigBee, Enocean and some IP-based devices) and supports the automation of all those integrated devices. For those interested, the solution is homee (a small German startup).

I recently stumbled over Home Assistant (HA), while researching some missing pieces for my Smart Home.

HA seemed (and still seems after some testing during the Weekend) the perfect solution to integrate those still missing pieces (e.g. Sonos, Samsung Smart TVs, Presence, Harmony Hub, etc.) in my Commercial Gateway, without the need to move away from it (I intend to keep it for the time being).

I love the clarity of HA, it’s documentation, the ease to get started and especially the availability of the above mentioned missing pieces :wink:

What I want to do
I want both my existing HA Gateway and HA to trigger events to each other via Webhooks.

  • Commercial Gateway -> HA
    The HA documentation is very clear on the REST API (https://home-assistant.io/developers/rest_api/), which is fully supported by my Commercial Gateway - therefore I am sure I will figure this out for ally my current and future use cases.
  • HA -> Commercial Gateway
    I am currently struggeling to find a way to trigger HA events towards my Commercial Gateway. I read this https://home-assistant.io/docs/automation/trigger/ - but I still have no idea how I would create a trigger in HA that would result in a simple URL-Call from HA towards my Commercial Gateway (initiated by HA events/triggers). My Commercial Gateway is able to “pre-generate” specific URLs for Webhooks (normally used for IFTT Maker Channel integration), that would then trigger internal action.

Can anyone give me a hint or even better an abstract example for a trigger ending in a simple URL-Call (w/o the need for transferring any HA states, as these are currently not supported by my Commercial Gateway anyhow)?

Thanks for any hints

Just to be clear on terminology, HA has automations that are started when a trigger occurs ( which is what your link points to),subject to conditions and then performs actions. Example documentation is here.

I think you need an action to call a URL, and the restful Command will set up a service to do that in an action, but I have never used it, so I can’t help further in that respect. There may well be other ways to do this.

3 Likes

So this would look sth. like this?

automation:
  trigger: ... 
  condition ... 
  action: ...
    command: 'curl webhook-url'

???

That’s it. You can use a shell_command if you want to use curl.

1 Like