IFTTT Trigger scene

Hey folks,

I’m trying to use IFTTT to trigger a scene. So Far I have it turning on switches with the following url:

http://[username].duckdns.org:8123/api/services/switch/turn_on?api_password=[password]
{“entity_id”:“switch.porch”}

Would it be possible to trigger with the following:

http://[username].duckdns.org:8123/api/services/scene/activate?api_password=[password]
{“entity_id”:“scene.porch”}

Thank you

You should use scene/turn_on…
After the api/ you need to use service… you can find all the services in the developer area in HASS…

Thank you. So just to clarify, I would use:

http://[username].duckdns.org:8123/api/service/scene/turn_on?api_password=[password]
{“entity_id”:“scene.porch”}

yes, it should work… why not trying?
Best way to learn is to trying out… And then if something doesn’t work, you can still ask it :slight_smile:

Thank you for the clarification. I tried the code and it still failed. I’m new to home assistant and I appreciate your help

same here, using it through the a flic task (“POST” method) just triggers ALL the scenes one by one

The URL you posted here says /api/service/ and not /api/services/

It needs to be plural, so I think you just have a typo

Not sure what a “flic task” is, but that post URL /api/services/scene/turn_on is correct, but as we are unsure exactly what JSON data you are posting along with that URL, we can’t really help.

Copy and paste the exact URL you are using and the JSON Post data so we can better understand the problem.

Also, if you want to test the API, might I suggest you download and use the free app Postman for your testing:

https://www.getpostman.com/

It is invaluable in testing to ensure you are sending over the correct data to the correct URL. I use it with all my API services to ensure I am not missing anything.

I’m posting {“entity_id”: “scene.nameofscene”} using the Flic iOS App (flic.io), all other services work fine this way, so I’ll probably create a script instead.

I understand that you are able to run scripts, but switching to a script instead of running the scene directly is a workaround and not solving the problem. I would really like it if we could resolve the problem, not only for your purposes, but for others that may be having this issue as well. If there is something wrong with the Flic app communicating with the scene service api call, then it would be nice to know in if there is a possible bug in either Home Assistant or the Flic iOS app.