200 - SmartThings Rest API

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • A hello world example using REST and Postman on how to query the SmartThings cloud to get the status of your devices.

КОМЕНТАРІ • 9

  • @piereligiodisante
    @piereligiodisante 2 роки тому

    I was wondering if you knew a restful command for getting the history of actions done by a device of mine

  • @TheDreamfishMedia
    @TheDreamfishMedia 5 років тому

    Thanks you, I was looking for REST API for smartthings. I Run a Node-RED Instance to perform all my automation. My Smartthings hub was not connected. With your explanation, I was able to perform list and status. When it comes to executing commands, i left with no clue. for any sensible combination of values returned by the other calls didn't work (return 422). Any clue, how to trigger a switch? I appreciate your help. Thanks again.

    • @TheDreamfishMedia
      @TheDreamfishMedia 5 років тому +1

      spending little more time, [{"component":"main","capability":"switch","command":"on"}] worked.

  • @ryvaenge
    @ryvaenge 5 років тому

    Thank you. Helped a lot. But it stops for me to understand how to POST a "on" command to a switch.....
    I tried a bit, to me it looks like I should put the commands in body, so I filled in: key:value:
    component:main, capability:switch,command:on
    also tried with ""
    anyone who understand what I`m doing wrong?

    • @ryvaenge
      @ryvaenge 5 років тому

      Luckily I found a forum post that used webcore with an URL instead of API, pretty easy.

    • @bobnothing4921
      @bobnothing4921 4 роки тому +1

      @@ryvaenge Can you please share? I am in the same boat you are.

    • @ryvaenge
      @ryvaenge 4 роки тому

      @@bobnothing4921 have you installed webcore on your smartthings?

    • @bobnothing4921
      @bobnothing4921 4 роки тому

      @@ryvaenge I have, use webcore all the time. I found out how to trigger a piston via http call, so thanks!

  • @gerardoenriqueakedzib6156
    @gerardoenriqueakedzib6156 Рік тому

    It is still working