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).
Make sure device you would like to control is added to the MakerAPI app
Note the MakerAPI app # (look in browser URL while you are editing the MakerAPI app)
Note MakerAPI token. Located in MakerAPI app config
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)
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.