Maker API....who can help me

Hello,

I'm trying to switch a device on just by opening a link. I found out about maker api. But I can't get it to work.

I've figured out how to get the device id. Which I then put into the link that follows " Send Device Command (replace [Device ID] with actual subscribed device id and [Command] with a supported command. Supports optional [Secondary value]".....

Also I replaced "[command]" with "on".

If I put it into a browser and open it, it lists all the infos about my device. So it seems to do something. It just doesnt switch on my lights.

Am I misunderstanding the concept/purpose of maker API?

Thank you! (Im not sure how much of the actual link I am supposed to give away for security reasons....which is why I'm just describing what I did).

Here is an example

http://192.168.10.169/apps/api/132/devices/123/on?access_token=1234

My adder:

  1. Make sure MakerAPI app is installed on hub
  2. Make sure device you would like to control is added to the MakerAPI app
  3. Note the MakerAPI app # (look in browser URL while you are editing the MakerAPI app)
  4. Note MakerAPI token. Located in MakerAPI app config
  5. Note the device id # for the device you want to control and added to MakerAPI config (look in browser URL while in the device detail page)
  6. Substitute the above in a command line like dan mentioned, replacing IP address, app # (bold below), device id # (bold below), and token with your values.

http://192.168.10.169/apps/api/132/devices/123/on?access_token=1234

The other option is to use a cloud or local endpoint as a trigger in rule machine.

1 Like

Thanks guys, it works for me now! The example helped me!

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.