Help get this topic noticed by sharing it on Twitter, Facebook, or email.

creating a schedule and named climate zone at the same time

I am having trouble posting a program to my thermostat, when i send payload1 I get
"message": "Validation error. Error validating the climate and periods request objects. Schedule references a non-existent Climate."

the only way to get around that is by sending the read only attribute climateRef with the same value as name, see payload2

but even then the schedule is incorrect and doesnt contain OE1, even though there is a comfort zone

payload1:

{"selection":{"selectionType":"registered","selectionMatch":""},"thermostat":{"program":{"schedule":[["OE1","away","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"]],"climates":[{"name":"OE1","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":620,"heatTemp":570},{"name":"away","climateRef":"away","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":630,"heatTemp":580},{"name":"home","climateRef":"home","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":640,"heatTemp":590},{"name":"sleep","climateRef":"sleep","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":650,"heatTemp":600},{"name":"auto","climateRef":"auto","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":650,"heatTemp":600}]}}}

payload2:
{"selection":{"selectionType":"registered","selectionMatch":""},"thermostat":{"program":{"schedule":[["OE1","away","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"],["sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home","sleep","OE1","home"]],"climates":[{"name":"OE1","climateRef":"OE1","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":620,"heatTemp":570},{"name":"away","climateRef":"away","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":630,"heatTemp":580},{"name":"home","climateRef":"home","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":640,"heatTemp":590},{"name":"sleep","climateRef":"sleep","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":650,"heatTemp":600},{"name":"auto","climateRef":"auto","isOccupied":false,"isOptimized":true,"coolFan":"auto","heatFan":"auto","vent":"off","ventilatorMinOnTime":20,"owner":"system","type":"program","colur":"9021815","coolTemp":650,"heatTemp":600}]}}}
4 people have
this question
+1
Reply