Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ecobee Thermostat via Smartthing to NodeRed Not working. #39

Open
dpouzar opened this issue Jun 12, 2020 · 1 comment
Open

Ecobee Thermostat via Smartthing to NodeRed Not working. #39

dpouzar opened this issue Jun 12, 2020 · 1 comment

Comments

@dpouzar
Copy link

dpouzar commented Jun 12, 2020

Hi all,
I been reading I have got my philips hue light to smartthing to NodeRed working fine. When the light status changes so does the LED on my dash board. Now when I move to the smartthings thermostat it does not update when a value is change in smartthings or by the ecobee app.. It does change if I redeploy it. Any ideas? I am using the NodeRed WebHook by Otávio Ribeiro [email protected].

[{"id":"3191a77d.d0dee8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"d16a5d5e.694b5","type":"smartthings-node-thermostat","z":"3191a77d.d0dee8","conf":"2112d7ee.75a448","name":"Main Floor(thermostat)","capability":"thermostat","device":"ee67ebc9-3ca6-4d23-8d36-e87d614798bf","x":120,"y":280,"wires":[["fafcd0a2.8dbaf"],["35fbc7ac.fd97d8"],["2b2ec6fb.cd967a"],["b74416ec.ac9ab8"],["8bd8471.31271b8"],["905767a1.999128"],["1bd558bd.9300d7"]]},{"id":"fafcd0a2.8dbaf","type":"ui_gauge","z":"3191a77d.d0dee8","name":"Livingroom","group":"e3b769c0.51d808","order":4,"width":0,"height":0,"gtype":"gage","title":"Main","label":"{{msg.payload.unit}}","format":"{{msg.payload.value}}","min":"0","max":"100","colors":["#3a8ccb","#00b500","#ca3838"],"seg1":"","seg2":"","x":590,"y":180,"wires":[]},{"id":"b74416ec.ac9ab8","type":"debug","z":"3191a77d.d0dee8","name":"main Thermo","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":670,"y":300,"wires":[]},{"id":"35fbc7ac.fd97d8","type":"function","z":"3191a77d.d0dee8","name":"COOLING","func":"/*var max = 100;\nvar unit = \"F\";\nvar data = \"COOLING +10\"\ncontext.data = context.data || {};\nvar msg2={};\n//msg2.payload=msg.payload.deviceType;\n//node.send(msg2)\nswitch (msg.payload.deviceType)\n{\n    case \"coolingSetpoint\":\n        max = (msg.payload.value) + 10;\n        break;\n}\n\nmsg = {payload:data,ui_control:{max:max},topic:\"COOLING\"};\nreturn msg;\n*/\nmsg = {ui_control:{max:(msg.payload.value)+10}};\nreturn msg;","outputs":1,"noerr":0,"x":350,"y":120,"wires":[["fafcd0a2.8dbaf"]]},{"id":"2b2ec6fb.cd967a","type":"function","z":"3191a77d.d0dee8","name":"HEATING","func":"/*var min = 0;\nvar data = \"HEATING -10\";\nvar unit = \"F\"\ncontext.data = context.data || {};\nvar msg2={};\n//msg2.payload=msg.payload.deviceType;\n//node.send(msg2)\nswitch (msg.payload.deviceType)\n{\n    case \"heatingSetpoint\":\n        min = (msg.payload.value) - 10;\n        break;\n    \n\n}\n\nmsg = {payload:data,ui_control:{min:min},topic:\"Soil\"};\nreturn msg;*/\nmsg = {ui_control:{min:(msg.payload.value)-10}};\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":160,"wires":[["fafcd0a2.8dbaf"]]},{"id":"8bd8471.31271b8","type":"ui_text","z":"3191a77d.d0dee8","group":"e3b769c0.51d808","order":1,"width":0,"height":0,"name":"","label":"Fan Mode:","format":"{{msg.payload.value}}","layout":"row-spread","x":690,"y":340,"wires":[]},{"id":"905767a1.999128","type":"ui_text","z":"3191a77d.d0dee8","group":"e3b769c0.51d808","order":1,"width":0,"height":0,"name":"","label":"Mode:","format":"{{msg.payload.value}}","layout":"row-spread","x":690,"y":400,"wires":[]},{"id":"1bd558bd.9300d7","type":"ui_text","z":"3191a77d.d0dee8","group":"e3b769c0.51d808","order":1,"width":0,"height":0,"name":"","label":"Status:","format":"{{msg.payload.value}}","layout":"row-spread","x":700,"y":440,"wires":[]},{"id":"3f7d073.6770bf8","type":"smartthings-node-onoff","z":"3191a77d.d0dee8","conf":"2112d7ee.75a448","name":"Kitchen Fan 3","device":"e4f6ad55-f10f-4b59-8f28-b90adf5f7789","x":200,"y":40,"wires":[["b7409489.c456f8"]]},{"id":"61b222b4.07231c","type":"ui_led","z":"3191a77d.d0dee8","group":"e3b769c0.51d808","order":4,"width":0,"height":0,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"false","valueType":"bool"},{"color":"green","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"name":"","x":810,"y":40,"wires":[]},{"id":"b7409489.c456f8","type":"change","z":"3191a77d.d0dee8","name":"","rules":[{"t":"change","p":"payload.value","pt":"msg","from":"0","fromt":"num","to":"false","tot":"bool"},{"t":"change","p":"payload.value","pt":"msg","from":"1","fromt":"num","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":40,"wires":[["a42196c9.d9e888"]]},{"id":"a42196c9.d9e888","type":"change","z":"3191a77d.d0dee8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":60,"wires":[["61b222b4.07231c"]]},{"id":"2112d7ee.75a448","type":"smartthings-config","z":"","name":"MyToken","token":"7735097c-73ae-4f63-90d6-73f459230446"},{"id":"e3b769c0.51d808","type":"ui_group","z":"","name":"Livingroom","tab":"37e2dcb9.596df4","order":3,"disp":true,"width":"6","collapse":false},{"id":"37e2dcb9.596df4","type":"ui_tab","z":"","name":"House","icon":"dashboard","order":2,"disabled":false,"hidden":false}]
@Derek-st
Copy link
Contributor

Duplicate of issue #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants