Possible to connect a Sensi thermostat

Thank you so much – I really appreciate the response. Now the real challenge begins… convincing my wife to get on board with adding all these gadgets to the house.

1 Like

@Kirk_Brown

This is working very well for me now and I am very grateful for all your efforts Kirk!
A quick follow up question on the temporary hold. It seems if I use the tiles to increase or decrease the setpoint, the thermostat holds the setpoint just fine until it reverts back to the sensi schedule at the next change (much as when u put a temporary hold on the thermostat).This is using the toggle buttons.

However when I do a set both thermostats to a certain range when I leave (perform an “away” or “im back” routine), i notice that one or more of the thermostats loses its hold in a few seconds. I’m thinking this is perhaps a “routine” ST issue and not something with your code. But was wondering if you had run into this?

Thanks for all your help on this and for creating the smartapp.

I saw the temporary hold oddness last night. I also have routines that change the temperature and when I ran my “Goodnight” I saw the tile within ST change to temporary. Once I refreshed it a few seconds later, it changed back to permanent.

Thanks @Ren34,
When you say permanent, do you mean “Sensi Schedule”?
There is a toggle within the setup where you can select temprorary or permanent.
The nice thing about temporary is that it is a hold until the next change on the Sensi Schedule.
If you switch the toggle to permanent, the Sensi schedule will be disabled.
It would be nice to have the schdeule temporary and work along with the sensi schedule. So thereby finetuning the operation of the thermostat further.
As stated if I use the buttons to raise or lower the setpoint, the thermostat holds fine till the next change. However if i use the routine one or two of the thermostats seems to immediately switch back to the sensi schedule rather than “hold”. Not sure if it is the smartapp or its an issue of the ST routine controlling two thermostats?

Within the Device tile, you can see whether it is on Permanent Hold or Temporary. I don’t use the Sensi Schedule, so it’s always a permanent hold on my system. I just happened to check on the ST device tile right after I ran my nightime routine and saw it said temporary instead of perm. Not sure if it was just a glitch though as everything worked as it should.

Thanks @Ren34.
Which thermostat smart app would you recommend using vs the sensi schedule?
Do you use one?

Actually, for future reference, this doesn’t appear to be an issue with the custom Sensi SmartApp or device handler. This seems to be a feature missing from Google Home. Per Google https://support.google.com/googlehome/answer/7073478?hl=en , thte doesn’t appear to be a voice command available to explicitly control the HVAC fan.

I just attempted to set this up and am running into an error when adding the SmartApp. When I click the “Done” button to finish the process, I get “An Unexpected Error Occurred”…any suggestions? I know my Sensi account info is correct because it lets me choose the thermostat and has the correct name. Thanks in advance for any help!

I am brand new to the home automation world yet had owned the Sensi for a while. i’ve just recently created a SmartThings account and have attempted to add the code that Kirk has created. I added to both the SmartApps and Device Handlers and both are listed as ‘Published’. The SmartApp shows it is in the SmartThings Labs category, as well. The issue is that my mobile app does not show these additions. I am logged in as the same user. I’d love to get this working so appreciate any guidance.
Thanks!

Did you add a new device in the SmartThings IDE with the newly added Sensi device handler as the device type? That should make it show up in your mobile app as a thing. Then you should also be able to add the Sensi (Connect) smartapp via your mobile app by navigating to Marketplace / SmartApps / My Apps.

I’m very glad you mentioned this. Earlier I had attempted to add this but didn’t see the listing. I checked under both the namespace name and the name of the thermostat. Strangely it was listed at the very bottom and not in alphabetical order. Thanks for having me take a second look at this. :grinning:

Did you ever resolve this issue? I am having the same problem in that I can log in, choose my thermostat and when I hit “Done” I receive the “unexpected error occurred” message at the top of the app.

I have a Sensi Thermostat and would like to add it to ST. Can you point me in the right direction? Thanks in advance

No, I’ve followed all of the instructions multiple times, but I’m getting the same thing you are Mark. I hit the final “Done” which should add the Sensi, but I get the “unexpected error occurred” every time. Anybody else have this and get it resolved?

Hi Mark, It has been a while since I set mine up, but I just noticed this message from Kirk…

So it looks like this should be really simple to set up. I think you should delete the device you had added manually in the IDE (sorry, my advice was not good). Then from you mobile app, navigate to the Marketplace, SmartApps, My Apps and you’ll see the Sensi Connect app that you can run. The smartapp will create the device for you automatically.

Good luck.

Hi Terry,

I would start by reading the post below. (You need to expand it to see the full post.) If you know how to install a custom Device Type Handler and a Custom SmartApp, it should be an easy install. Kirk’s code does a lot of configuration automagically once you supply the SmartApp with the Sensi account info. It all worked for me flawlessly the first time I tried it back in January.

Thanks Tyler. I did remove the Device from the web API and left only the SmartApp and the Device Handler. I went to the Marketplace in the app and added the SmartApp under “My Apps”. It seems to go flawlessly until I try to hit “Done” on the last page. I get a message that says (in green at the top) that the device has been installed and is working, but very shortly afterwards I see a message that says “unexpected error occurred”.
Slightly different process, same result.

I ended up playing in the simulator for a while and discovered an error which I suspect is what is occurring in the actual SmartThings app. I’ll keep digging but am open to ideas. And, before you ask, I did try adding the device the type ‘Sensi Thermostat’ that is available from the dropdown when adding via the API . :slight_smile:

physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘Sensi Thermostat’ in namespace ‘kirkbrownOK/SensiThermostat’ not found. @ line 117

Did it make a new device?

I wonder if anyone has had success running the smartapp since the latest ST update(s). I would clear my install out and try to see if it still works for me, but I really hate to find out I’m right and be without the integration. :smile:

No, it seems to error before that since it’s stating it cannot find the device type. I agree, don’t mess with yours just on my account but I do appreciate the feedback so far. :wink: