Samsung z-wave hub api

Hi
I have a samsung z-wave hub and an honeywell thermostat connected to it.
I want to make my api code to read thermostat and change settings in it.

so I opend an account and … in the IDE I created a smartapp.
with the url and the auth that the new app gave me I can connect to the smarapp with postman and see the current reading/settings/mode… in my honeywell device.

till here evreything is ok.

I dont find how to change settings in my honeywell device.
can you point me to an example to do it?

note:
with all my testing I also created a device handler in the ide, with the device handler I can post changes to the honeywell device but I dont know if there is an option to connect to it with postman.

Thank you!

You can do this with our public API, assuming your Honeywell Thermostat has the proper DTH.

https://smartthings.developer.samsung.com/docs/api-ref/st-api.html

Thank you for you quick answer
it is a better way to work
but:
I again can GET everything from the smartthing and from the honeywell device that is connected to it
but when it gets to POST a command

  1. even if it looks that the command was succeses (empty responce) in the next GET command I see
    nothing changed
    example:
    a.
    {
    “commands”: [
    {
    “component”: “main”,
    “capability”: “thermostat”,
    “command”: “setThermostatMode”,
    “arguments”: [
    “heat”
    ]

}
]
}

b.
{
“commands”: [
{
“component”: “main”,
“capability”: “thermostat”,
“command”: “setHeatingSetpoint”,
“arguments”: [
72
]

}
]
}

any change I make in the command gives me an error.
exaple b for the heatSetpoint we need a value and a unit how am I sending in both?

Note:
from the device handler it is posible to change heatSetpoint so I guess it should be a way frrom the API too.
Thank you!

© 2019 SmartThings, Inc. All Rights Reserved. Terms of Use | Privacy Policy

SmartThings; SmartApps®; Physical Graph; Hello, Home; and Hello, Smart Home are all trademarks of the SmartThings, Inc.