Hello there. I want to connect a Thermostat. Now, I use the capability “Thermostat”. For more informations about the capability: http://docs.smartthings.com/en/latest/capabilities-reference.html#thermostat. Now I want to change the value of an attribute. In the example below I want to change the attribute coolingSetpoint. But the Problem is that I always get null back on the attribute. Can someone help me or tell me where my mistake is?
Thanks
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
2
heatingSetpoint is an Attribute, not a variable.
To access an Attribute in a DTH you need to use a the currentState method like:
Man I’m trying. But I’m tired of everything here. Searching already for 2 Weeks for a solution how to do my integration with devicehandler and service manager but its just terrible man. Cant find anything and no solution til yet
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
9
“2 Weeks”??? I’ve been here for over 5 years.
SmartThings is an incredibly powerful and complex platform. You can’t expect to become proficient in something in 2 weeks!
Patience and persistence is required to learn anything… especially SmartThings. There’s no “SmartThings for Dummies” book or online lessons; so you have to spend a lot of time exploring and reading and experimenting with the simplest possible code … ideally for months.