Like I said - look at the network tab in your browser’s dev tools. Click on the entry in the network log and it’ll give the whole URL. You’ll have to append the ?api_password=xxx part.
ih8gates. I am also trying to achieve the same. under Imperihome android app that is for automation. Imperihome supports HTTP request via GET and POST. I supplied the below url to it.
You need to pass the JSON as the body of the POST, not as part of the URL. It’s possible that Imperihome doesn’t off that. You can see an example for IFTTT that does the same. Check out the IFTTT component page.
Thanks ih8gate … really appriciate your help here …OK will IFTTT component solve my issue, that is I call a URL in Imperihome that sends the request to IFTTT and IFTTT in turn triggers an event with respective ID, in my case switch.bedroom_light.
If this is possible can you please turn/push me a little in the right direction as to how to make this happen. I went through the IFTTT page and also created a trigger in IFTTT that has POST parameters like you have shown inthe above image, also added ifttt component with the KEY in yaml file … by now what what next how to make this all work … sorry to be a noob … if you can just assist me here I shall pick it from there
I was showing IFTTT as an example of formatting your data. But if Imperihome can’t send a body with a POST, then I guess you could use it as an intermediary. It might have a bit of latency. If Imperihome can do the proper format for a POST, you’re much better using that.
I’m not really clear on what you need at this point. Try tackling things one step at a time - make sure that IFTTT->Home Assistant works first by using an IFTTT DO button to trigger it. Then move on to triggering from Imerpihome via the IFTTT Maker channel.
I managed to solve it. I created an event in IFTTT and in the “then” part connected it to the web request,
IFTTT was already added to YAML file with the KEY. Then was just a matter of passing the below URL
and that switched on the Lights and only lights and not the speakers. I provided the same URL in Imperihome and IT WORKED!!!
The only tiny complaint is that its bit slow, I mean its takes 1-2 seconds after the button is pressed, Plus I cannot use local IP from IFTTT, I had to use DDNS and fw the HA IP, which I personally did not want to, but if that’s the only way to solve this so be it … I am happy. …
Cant believe it was so simple, wish someone could have suggested this earlier, I have two threads running for the same issue I was facing for last 5 days and was not able to solve it …anyway late than never. thank you again for pointing me to IFTTT. I might now go into more detail automation and might need some more assistance, hope you will be there …