Ecobee 3 Remote Sensors into ST

@Drewbert34, please check at the ecobee portal to determine if occupancy was changed and properly reported by the remote sensors during these hours.

It also depends on the polling interval that you have specified in the smartapp (by default 30 minutes).

My code just updates the Motion Sensor created in SmartThings according to the data provided by ecobee. If the data is not accurate, the Motion Sensor will report the same data.

As I said earlier in this thread, ecobee3’s motion Sensors are not as accurate as temp Sensors, see this thread for more details:

http://www.smarthomehub.net/forums/discussion/68/ecobee-3-sensors
http://www.smarthomehub.net/forums/discussion/213/resetting-ecobee3-sensor3

Bye for now.


None of my sensors report movement in ST but they do at the thermostat. In this example I’m referring to the “office” which is lower most on the thermostat

Hello @drewbert34,

Please activate live logging in the IDE, so that I can better support you.
Please follow these steps for detailed tracing:

To get all the tracing I need to correct the issue, please do the following

  1. Go to https://graph.api.smartthings.com/device/list,
  2. Click on My Ecobee device,
  3. Edit the preferences (middle of the page)
  4. Set verboseTrace to true (as long as there is a value)
  5. Click Save at the bottom of the page
  6. https://graph.api.smartthings.com/ide/logs

PM me the logs of any errors related to My Ecobee Device and ecobee3RemoteSensorInit
Regards.

@jody.albritton, @Drewbert34

I may have identified an issue in my code for refreshing motion Sensors.

Hopefully, the new ecobee3RemoteSensorInit will then report more accurately the occupancy status to SmartThings.

just grab the code at

Do not forget to save and publish.

At the next polling interval, it should report the occupancy status in sync with the Ecobee portal.

Let me know.

P.S. This won’t fix the occupancy delay that ecobee3 users are sometimes experimenting with their remote sensors per se.

You may already have this fixed with the above but I wanted to send you what I’m seeing thus far:

Motion Alerts:

3545764c-c957-460f-8953-1ab3f1352fad 6:49:31 PM: trace motion.active from Ecobee3 Motion Office was provided with motionActiveHandler…creating subscription
3545764c-c957-460f-8953-1ab3f1352fad 6:49:31 PM: trace subscribing to [Ecobee3 Motion Office]
3545764c-c957-460f-8953-1ab3f1352fad 6:49:31 PM: trace Motion Alerts is attempting to unsubscribe from all events
3545764c-c957-460f-8953-1ab3f1352fad 6:49:31 PM: trace Motion Alerts updated with settings: [modes:[Home Day, Home Night], pushNotification:true]

Downstairs Office:

2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:37 PM: info SOLUTION_SUMMARY data: [[icon:indicator-dot-green, iconColor:#878787, default:true, value:No motion]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:37 PM: trace motionCount: 6, cameraCount: 0
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:37 PM: trace activeCount: 0, notActiveCount: 6
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:37 PM: debug Downstairs Living Room states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Stairs states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Upstairs Bathroom states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Laundry Room states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Upstairs Living Room states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Downstairs Office states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: info SOLUTION_SUMMARY data: [[icon:indicator-dot-green, iconColor:#878787, default:true, value:No motion]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: trace motionCount: 6, cameraCount: 0
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: trace activeCount: 0, notActiveCount: 6
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Downstairs Living Room states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Stairs states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Upstairs Bathroom states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Laundry Room states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Upstairs Living Room states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Downstairs Office states: [[summary:inactive]]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: info SOLUTION_STATE stateData: [activeCount:0, inactiveCount:1, cameraCount:0, icon:st.motion.motion.inactive, backgroundColor:#e8e9eb]
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: trace setSolutionState()
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: trace updateSolutionState([Ecobee3 Motion Office]) - overrideValue:null
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: trace motion from Ecobee3 Motion Office was provided with motionHandler…creating subscription
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: trace Downstairs Office is attempting to unsubscribe from all events
2b93e782-b443-44e6-a009-cf9da5f6f656 6:49:36 PM: debug Updated with settings: [motionSensors:[Ecobee3 Motion Office]]

Motion Alerts:

4d6c5c19-92cb-4403-97fd-6e0ff1ce715f 6:56:02 PM: trace Not sending alert
4d6c5c19-92cb-4403-97fd-6e0ff1ce715f 6:56:02 PM: trace modeOk = false

@Drewbert34, thnx for the log.

Could you PM (private mail) the log of the ecobee3RemoteSensorInit smartapp only?

Just click on the smartapp trace (above) in the logs.

If the issue is still there, it must be in this smartapp, not in the trace of the individual Motion sensors.

Thnx ahead.

BTW, I submitted a question to ecobee about the data accuracy of their occupancy sensors
through the APIs.

The temp sensors seem to be fine though.
It looks like I’m not getting properly updated by the new APIs for the motion sensors.

See

http://developer.ecobee.com/api/topics/accuracy-of-the-ecobee3-remote-sensor-occupancy-data?rfm=1

I’ll keep you posted about it.

OK, got an answer from ecobee (that was pretty quick this time!)…

Here it is:

Hesham Fahmy (Official Rep) 15 minutes ago

Our apologies, but our documentation should have been made clearer to clarify that remote sensor data is only reported by thermostats with a firmware version of 3.6 and higher. Earlier versions of the firmware are not reporting the sensor data upstream.

In your code check the value of Thermostat->Version-> thermostatFirmwareVersion.

The 3.6 firmware version will be rolling out to all thermostats shortly. An official announcement regarding this will be made soon.

So, at the moment, occupancy data is not accurate at all.

My apologies to all, I was not aware of it…And, I spent a lot of time debugging with people (especially @Drewbert34) for nothing…

1 Like

Thanks @yvesracine and @Drewbert34 for your work. After a long day of work and an evening of meetings I was all ready to crack open a drink and dig into this.

A quick note to anyone else watching this thread, the iphone app for Ecobee does have the firmware version listed under ABOUT from the main menu. I am still at version 3.5.x. Will be watching and will report back when I see the update.

Just to confirm - I have all the same results as @Drewbert34. Temp is working, motion is not, anxious to see if we can read humidity soon.

doing this on an iphone
updated the devices and forced close the ST app after to make sure everything was gone (even deleted the app and brought it back)

but i get the same problem as someone listed above, get into init, select my thermostat, leave interval at default and then click next and its just a blank window and errors if i hit next…
live log shows this
1b9e2b82-172a-4cd9-983f-1a0cc2214834 11:01:24 PM: error groovy.json.JsonException: A JSON payload should start with an openning curly brace ‘{’ or an openning square bracket ‘[’.
Instead, ‘null’ was found on line: 1, column: 1 @ line 75
d5fc63de-739a-4013-b9bf-6d5d59972f70 11:01:24 PM: error java.lang.NumberFormatException: For input string: “unknown” @ line 2747

@a2thejay23, for this issue, the cause is one of the following:

  1. for some reason, the My ecobee Device type was not updated correctly.

Grab the code at

Make sure to Save and publish.

  1. Your old device is still in the cache. And you need to delete your OS
    cache again…I know how to do it in Android, but not on an Iphone. Usually
    you need to go under your OS menu, select the app, and clear the associated
    cache for it.

To know what’s going on, just activate the live logging and get more tracing
in the IDE by following these steps:

  1. Go to https://graph.api.smartthings.com/device/list,
  2. Click on My Ecobee device,
  3. Edit the preferences (middle of the page)
  4. Set verboseTrace to true (as long as there is a value)
  5. Click Save at the bottom of the page
  6. Go to https://graph.api.smartthings.com/ide/logs
  7. Run ecobee3RemoteSensorInit on your smartphone/tablet
  8. Watch for any errors in the logs related to My Ecobee Device and ecobee3RemoteSensorInit

If you get the following error msg:

generateRemoteSensorEvents’ is not supported. Supported commands: [poll, refresh, setHeatingSetpoint, …’

This means that the issue may be your cache that needs to be cleaned again (can be a persistent issue sometimes).

Let me know and PM me the errors in the logs.

From what I know on an iPhone the only way to clear app cache is to delete it and re-install it. This isn’t too much of an issue except I am not sure if you will lose all of the tiles or “things”. YMMV.

Hey jay, may be a day late and a dollar short to this party but what I did to get it going was to go to the code for the device type in the IDE, drop line 2747 down one, and type the word “continue” in line 2747, like this:

That allowed me to continue and not get the blank page. But now I’m getting this when I’m at the end and hit “Done”:

any ideas Yves? BTW, your pretty awesome! Thanks for all the hard work. :smiley:

@antolope, if you have a blank page error within ecobee3RemoteSensorInit, there are 2 potential causes:

  1. The device type has not been updated correctly within the IDE.

You must grab the latest device type code at github:

And, don’t forget to save & publish.

  1. The old device type is still in the cache.

If you have an android device, you must go to the settings/app, scroll down to the smartThings app, and
clear the cache. If you have an iOS device, I’ve been told that you need to reinstall the smartThings app.

P.S. You do not need to modify any code in the IDE, as you may encounter other errors later.

Regards.

Hey Yves, first, I reverted the changes I made back to your original code. I then deleted the app on my iPhone and reinstalled it.

You were correct, deleting and reinstalling the app allowed me to get past the blank page error with no code modifications on my part. All sensors have been picked up and installed.

Moral of the story, if the directions have been followed properly on an iPhone and the blank page error is coming up, uninstall and reinstall the SM app and that should take care of it.

Thanks Again! :smiley:

Hi @yvesracine when launching the ecobee3RemoteSensorInit app I get a “Failed to save page: Notifications” message in the mobile app.

I also get the following message in the IDE logs: 10:12:24 AM EDT: error physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘Motion Detector’ in namespace ‘smartthings’ not found. @ line 187

@huydnguyen, please make sure to follow all the steps in the readme.ecobee3RemoteSensorInit

Refer to

You seem to have skipped the step no 3, and more specifically substeps g,h and i) to create the Motion Sensor object.

As far as the ‘Failed to save page: notifications’ is concerned, I think that this could be a momentary ST issue. Please retry, and if you encounter this issue again, please PM me any errors in the logs.

Regards.

.

I did do step 3, only thing was the template for motion sensor was called “motion detector”. But i found my error. I renamed the devices to “EcoBee3 Remote Temp” and “EcoBee3 Remote Motion” so i knew later on why i had those devices :slight_smile: Guess it didn’t like that.

@huydnguyen, please do not rename the device types (Temperature & Motion Sensors) as they will be instantiated by my ecobee3RemoteSensorInit smartapp for your specific remote sensors.

If you rename them, my smartapp won’t be able to create these objects for you.

Bye for now.

yep got it thanks, awesome work by the way…