IFTTT M2X channel new datapoint trigger doesn't work when stream selected 02.21.2016 04:13 AM
Hello, and thanks in advance for any advice you can offer.
I'm experimenting with M2X as an interface to my home automation system. So far, it's working quite nicely, but I have run into what I think may be a bg in the IFTT interface.
When I set up a trigger to fire on a new datapoint, but do not specify a single stream, it works as advertised.
But when I enter the stream name so that I can only monitor a single stream, it no longer fires. According to the IFTT instructions for this trigger, the ID I'm supposed to use is "The name of your device's stream. The stream name can be found on the Device Details page for the device entered above. Leave blank for firing this trigger when a device receives a datapoint on any of its streams."
Am I misundertanding the instructions, or is this a flaw in the M2X channel on IFTT?
Re: IFTTT M2X channel new datapoint trigger doesn't work when stream selected 03.24.2016 05:07 AM
So far, the only DO action available on IFTTT is the ability to send a command to a M2X device. You would then need to use the M2X API to cehck for the Queued commend for your device and then act on it.
However, that action could include using another API call to log new data to a stream. Here's how that would work.
Re: IFTTT M2X channel new datapoint trigger doesn't work when stream selected 03.24.2016 11:31 AM
Do you have any sample Command Name and Command Data from IFTTT side you can share? I can get just a simple DO button to even get to the Stream. I see in IFTT Log just never gets to M2X Stream (Stream Name Verified OK!)
Basically I just have one device in test, with IFTTT and M2X. Trying to use DO Button to test....
Re: IFTTT M2X channel new datapoint trigger doesn't work when stream selected 03.24.2016 05:13 PM
The problem is that the only thing you can assign to an M2X DO button is "send a command."
Commands sit in a queue for that device waiting to be processed. The device itself has to use the M2X api to retrieve the command and act on it. One of those actions can be to add a new value to a stream associated with the device, but you have to do it with an API call.
There is no direct path to log stream values witha DO button.
Re: IFTTT M2X channel new datapoint trigger doesn't work when stream selected 03.24.2016 06:30 PM
Wow, thanks Kristin! I was steering him the wrong direction! I tried to create a new DO button and "send a command" was the only thing that came up, but now I just did a search and see that's not the case.