otaviojr / node-red-contrib-smartthings

Allows you to control your devices and get their status using NodeRed
MIT License
32 stars 16 forks source link

Node for thermostat set point #4

Closed CopyCat73 closed 4 years ago

CopyCat73 commented 4 years ago

I can select my thermostat temp sensor as well as the thermostat set point in the smartapp, however there is only a node red node to read temperature, no node to set it. It would be great if you could add it ;) thanks!

otaviojr commented 4 years ago

Hi CopyCat, I can do that, but, I can not test it.

I live in Brazil and here we don't need those things. Usually our air conditioning system have only two commands. Coldest possible, or, off. :-)

I will create the node, but, if you could test it will help a lot.

Give me a few days and I send you a message.

regards.

otaviojr commented 4 years ago

CopyCat, i pushed a new npm version with the thermostat node.

Could you test it and send me some feedback?

CopyCat73 commented 4 years ago

I can read the setpoint now from the 4th node:

{ deviceId: "74d2eb6d-6e1e-4495-bc89-e06ce7…", deviceType: "thermostatSetpoint", name: "Thermostaat(thermostat)", value: 19.5 }

Setting a value to the thermostatSetpoint doesn't seem to do anything, there might be a delay. I will test further. Thanks for the update!

otaviojr commented 4 years ago

Usually, this error means that your input message is not correct.

Use the debug node to see what’s going inside de node.

It should be something like that:

{
  “topic”: “coolingSetPoint|heatingSetPoint”,
  “payload”: {
    “value”: 70
  }
}

Regards

otaviojr commented 4 years ago

When you click at the node, at info tab, will have examples of all input messages supported.

Regards

otaviojr commented 4 years ago

One more thing, you can not set the thermostatSetPoint directly. You need to set the coolingSetPoint or heatingSetPoint. SmartThings will use one or another as thermostatSetPoint depending on when cooling or heating.

Regards

otaviojr commented 4 years ago

CopyCat, dit it work? Using coolingSetPoint and heatingSetPoint?

cspawn1 commented 4 years ago

Hi, I am working on a project that will be integrating a number of thermostat nodes. I'll need to adjust heatingSetpoint and coolingSetpoints. I am struggling getting the heatingSetpoint/coolingSetpoint to change. I am just trying to test using the inject node with a JSON message following your example in the thermostat node info. Did you ever get this working with CopyCat?

cspawn1 commented 4 years ago

Also, do you possibly have an example flow showing how we can utilize the thermostat node?