Multiple notifications with IFTTT maker

Hi all,

I have the following problem:

When i open or close my garaget with a IFTTT maker webhook (https://maker.ifttt.com/trigger/garage_close/with/key/myToken) i always receive two notifications for closing and opening.

If i open the garadget with the app or with the garage hardware-button, i only get one notification.

Best regards,
Jason

Jason,
Before we go any further with the issue: is there any specific reason you use maker channel instead of Garadget’s own IFTTT channel?

Yes, sure i use the garadget ifttt channel. But i open the garage with a maker channel from my own home automation website.

This is the only way, because i dont understand the garadget own api via particle.

The Particle API is not that complex and it’s essentially what you’re doing with the maker channel, except it involves few more additional servers on the way.

If you want a working example of a call, you can go to the web interface, call the developer panel (F12 in Chrome), then go to “Net” tab. You’ll see all of the requests and responses generated by the app. When you click the door to open/close it, you’ll see the request that you’ll need to reproduce in your web app.

If you’re still stuck, let me know the programming language you use in your automation website and I’ll try to produce the code for the Particle API call.

Hi Denis

Thanks for your answer.

Hm i have another problem “No doors found” in the web version.

The android app is fine. I don’t know, when i logged in to the web version the last time, but in the past it worked fine… You can see my login eMail in my profile… thanks for checking.

You might have a generic Particle account with the same email address.
I made modifications to the login form to resolve the ambiguity. Please try now after clearing browser’s cache.

Hi Denis

Thanks, this was the problem. I created a particle account a few days ago with the same email address, because i thought i need one for the garadget API. Now i can see my door again, thanks.

I now checked the developer console.

With https://api.particle.io/v1/devices/MYDEVICEID/doorStatus?access_token=MYACCESSTOKEN i can get a json with the status, thats fine.

But which url i have to use to open or close the door? I see this URL https://api.particle.io/v1/devices/MYDEVICEID/setState but how i have to give the command to open and close?

Is the access token i found in https://www.garadget.com/my/ always the same?

Thanks for your answer!

Hi again

I found now a solution for the API with this PHP Curl Command:

$curl = curl_init();
$url = ‘https://api.particle.io/v1/devices/MYDEVICEID/setState’;

curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, “Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1” );
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS,
“set_state=ACTION&access_token=MYTOKEN”);

$resp = curl_exec($curl);
curl_close($curl);

As ACTION i use “open” or “close” -> this works fine!

But the problem with the multiple notifications are the same as with IFTTT…

The “open” command shows 3 notifications:

“Door is now opening”
“Door is now closed”
“Door is now opening”

When i close the door, there is only one notification

“Door is now closed”

Yep, curl is what I use for API calls in php code here.
Re. multiple notifications, here are the possible scenarios:

  • If there’s something highly reflective in the path of the laser when the door moves, the sensor may be tricked into thinking that the door is closed. Solutions: cover the reflective surface or increase the threshold setting or increase the scan period

  • If door is too slow to start motion or if the reflective tag is larger than normal the laser may get another blink reflected after the command to open the door was received. Solution: increase the scan period or set the reflective tag in the way that it moves away from the beam immediately as the door starts moving.

  • the release rope gets in the way of the beam as the door moves, reflecting the laser. Solution: move the beam or cover the rope with something non-reflective.

Please let me know if any of this matches your situation.

With scan period 5 seconds, instead of every second it works! Thanks for your help!

1 Like