Sending http push url to HASS

Why not just use webhooks?

There are a lot of sensors that work on ‘local push’. e.g. look at the right hand side column here:

Maybe pick a simple local push sensor and try to reverse engineer it in conjunction with the docs.

Is this what you mean?

That could be a possibility too. Thanks for that!

It’s also possible without ifttt, an webhook that triggers an automation

1 Like

Yeah just found it…

The good news is that the IPX does support POST as well as GET.

I guess on the IPX side I just need to add the string:

http://<domain address>:8123/api/webhook/<webhook_id>

After creating the appropriate Webhook in HASS

Or other option, you can do it in nodered.
So IPX → NodeRed → HA

No python to write either :slight_smile:


Thank you!

I have just spend the last few hours getting the webhook functioning :stuck_out_tongue:

All works fine but the IPX unfortunately is behaving strangely. I will need to investigate as it seems to be something to do with the POST function.

I’ll have a look at NodeRed too. :slight_smile:

You don’t have to create a web hook. Just create an automation that will set the value of a helper input binary sensor and you’re done.

Thanks but I am not sure what you mean by “helper input binary sensor”?

Google gave a bunch of input_* links eg:

I meant a helper input boolean entity. Sorry for the confusion.

Ah ok gotcha :wink:

So, do you mean doing something like:

  1. Poll IPX controller
  2. Update binary sensor
  3. based on binary sensor state, set Input Boolean value


Or do you mean set the Input Boolean directly from my controller? <- Unfortunately I cannot do this as the controller does not support JSON, so I can only send Push based urls.
The Webhook method would have worked but seems like there is a software glitch with the IPX using POST as well. :sob:

Now I need to find some kind of GET based solution… and not receive the 405 Error

I have a Synology, also using actions, not compatible with post, only get…

So I have setup a small php server , so I call a php file … That php file sends a post to HA

Have you considered Zapier webhooks? They seem to support GET requests. You could then use Zapier to make a POST request to your HA.

Zapier is good, but there is always a delay…

Would it be possible to share your php script?

It might be a good solution for me at this point.

offcourse, you can use this one to create the .php file

here is mine:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://xxx:8123/api/webhook/your_webhook');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);

you dont need a webhook though, you can also use the API directly to turn something on / off like in your first post… just create multiple php files , or you can work with arguments that you pass in your .php url

1 Like

Thank you :slight_smile: :slight_smile:

Just converted HASS to use Postgresql instead of sqlite DB too so hopefully I will get higher performance too now as things were getting a little slow and the db size went to over 12GB. Hopefully now with added ZFS compression it should become much smoother :wink:

I will write it up soon once I have fixed my lights :rofl: <- just needs an fsck on the UFS file system in my Pine64 Astronomic Clock…

This is really awesome!

It works great and is basically instant.

Thank you so much!!!

Out of scope of HASS but if anyone else reads this and finds it difficult to get it working, make sure you have a web server setup. Something around the size of a Pi et el… should be fine but it depends on the number of queries, upgrading to a light Atom or Celeron might be better.
This means Apache or Nginx to mention two of the big names with php module for Apache or php-fpm for Nginx.

Even more good news is that my lights are also fixed :wink:

Many thanks to everyone for your suggestions and ideas :smile:

Hopefully if I get a chance tomorrow I’ll create a writeup on the Pgsql setup too…