/
readme.ecobee3RemoteSensor
131 lines (71 loc) · 5.46 KB
/
readme.ecobee3RemoteSensor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
Copyright 2015 Yves Racine
LinkedIn profile: ca.linkedin.com/pub/yves-racine-m-sc-a/0/406/4b/
Developer retains all right, title, copyright, and interest, including all copyright, patent rights, trade secret
in the Background technology. May be subject to consulting fees under the Agreement between the Developer and the Customer.
Developer grants a non exclusive perpetual license to use the Background technology in the Software developed for and delivered
to Customer under this Agreement. However, the Customer shall make no commercial use of the Background technology without
Developer's written consent.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Setup time: about 5-15 minutes depending on your ST skills
Please take note of the following:
You can now download the code at
http://www.maisonsecomatiq.com/#!store/tc3yr
P.S. Technical support packages are also available.
PREREQUISITES
=====================
- Your ecobee thermostat fully operational (and connected to wifi)
- Your ecobee's proprietary sensors connected to your thermostat and fully operational under the ecobee portal
Note: This smartapp is only used to expose the ecobee's proprietary remote sensors.
For any other ST connnected sensors, refer to MonitorAndSetEcobeeTemp at my github or even better
ecobeeSetZoneWithSchedule which allows you to control which ST connected sensors are used at a given period of the day
according to the ecobee's schedules (Home, Away, Sleep, Awake, custom).
- Developer access to SmartThings (http://graph.api.smartthings.com/)
- <b> Determine your shard, please consult this thread: </b>
https://community.smartthings.com/t/faq-how-to-find-out-what-shard-cloud-slice-ide-url-your-account-location-is-on/53923
<b>If you are on a different shard, you need to change the links below for your right shard.
As an example, in North America,</b>
replace https://graph.api.smartthings.com/ide/devices by https://graph-na02-useast1.api.smartthings.com
INSTALLATION STEPS
=====================
# 1) If needed, you may want to update the My ecobee device, save & publish in the IDE
<b>The code will be sent to you via your paypal verified email address.</b>
If not already created, read the instructions at
https://github.com/yracine/device-type.myecobee
# 2) Create a new smartapp called ecobeeRemoteSensorInit, grab the code from the related txt file, save & publish
<b>a) Go to </b>
https://graph.api.smartthings.com/ide/apps (or whatever your shard is and click on My Smartapps in the IDE's top menu)
<b>b) Create a new Smartapp, click on new Smartapp on the right</b>
<b>c) From there, use the "From code" tab, and copy & paste it from the source file in the zip</b>
<b>d) Click "Save" & Publish (upper right)"</b>
# 3) Prior to calling ecobeeRemoteSensorInit, you need to create My Remote Sensor device handler in your IDE:
<b>a) Go to https://graph.api.smartthings.com/ide/devices</b> (or whatever your shard is and click on My Device Handlers in the IDE's top menu)
<b>b) Click on new Device Handler on the right</b>
<b>c) On the new Device Handler page, click on the "From Code" tab</b>
<b>d) Copy and paste the code from My Remote Sensor from the source txt file in the zip</b>
<b>e) Click save and publish</b>
# 4) Enable tracing, activate live Logging & Execute ecobeeRemoteSensorInit
for better support, just active the live logging and get more tracing
in the IDE by following these steps:
<b>a) Go to https://graph.api.smartthings.com/ide/logs</b> (or whatever your shard is and click on Live Logging in the IDE's top menu)
<b>b) Under the new Samsung connect app, run ecobeeRemoteSensorInit on your smartphone/tablet</b>
<b> Under the new Samsung connect app, execute ecobeeRemoteSensorInit (under + in the upper right corner/Smartapp).</b>
Scroll down to ecobeeRemoteSensorInit under the Custom section and click on it to execute it.
The smartapp will ask you to select the remote temp sensors and motion sensors to expose to SmartThings.
<b>c) Watch for any errors in the logs for My Ecobee Device and ecobeeRemoteSensorInit</b>
If you have a blank page in ecobeeRemoteSensorInit or "a unexpected error occurred" while
executing the smartapp:
<b>d) Make sure that all your remote sensors are actually reporting to the physical thermostat...
In some cases, remote sensors may have some connection issues with your physical thermostat, and my code is not able
to detect them.
<b>e) If you have the following error msg in the logs:</b>
physicalgraph.app.exception.UnknownDeviceTypeException: Device type 'My RemoteSensor' in namespace 'yracine' not found
Then, it means that somehow, step 3 was not completed entirely.
After execution, you should be able to see the new Sensor objects under (or whatever your shard is)
https://graph.api.smartthings.com/device/list (or whatever your shard is and click on My Devices in the IDE's top menu)
# 5) Motion and temp Updates
The temp and motion values will be updated in MyRemote Sensor according to the polling interval specified as input in the smartapp.
# 6) Repeat step 4b for each ecobee thermostat
If you have many ecobee thermostats, you'd need to execute ecobeeRemoteSensorInit for each one, but change the instance
name each time at the last page (Notifications And Other Settings):
"Assign a name for this SmartApp"