[RELEASE] My Next ManagerV2 for your Nest® products

Hi, I made some minor changes to NestChangeMode so that it triggers the Nest’s Away mode, which will enable the eco mode at the tstat as well. BTW, you can also call the away() and present() methods in the DTH via Webcore according to your own custom rules. Those 2 methods, which affect the whole structure, were recently added hence the reason for the change to NestChangeMode.

Now, to end the eco mode at the tstat, you need to create another instance of the NestChangeMode for the Home ST hello mode. Each instance must be dedicated to a single Nest structure’s change.

It’s all explained at the ST community wiki:

https://thingsthataresmart.wiki/index.php?title=NestChangeMode

For this use case, and many other automation use cases, you may want to contribute to the ScheduleTstatZones at my store, which is based on the concepts of rooms/zones/schedules.

Refer to the ST community wiki for all the use case supported by ScheduleTstatZones:
https://thingsthataresmart.wiki/index.php?title=ScheduleTstatZones#Supported_Features
https://thingsthataresmart.wiki/index.php?title=ScheduleTstatZones#Configuration
Regards.

1 Like

Updated to your new NestChangeMode 1.2 code and now neither away or home works. I understand making one instance for away and one instance for home; that is logical. I can see the two instances trying to do things in the logs but it looks like the commands are never sent to Nest.

Hi,

Your Nest is probably not authenticated properly for SmartThings commands. Please refer to the ST community wiki for troubleshooting:

https://thingsthataresmart.wiki/index.php?title=My_NextServiceMgr#Issue_.2314:_My_Next_devices_are_not_updating_or_my_auth_tokens_are_lost

You have to make sure that your Nest tstat is responsive.

Did you enable detailed logging in OtherSettings (last page of MyNextManager ) and in the DTH’s preferences to see what’s going on in live logging?

You’d need to enable detailed logging to see what’s going on.

Refer to:

https://thingsthataresmart.wiki/index.php?title=My_NextServiceMgr#Issue_.2310:_I_want_detailed_Logging.2FNotifications_or_I_want_to_enable_Ask_Alexa_Notifications

If there are any errors, please make sure that your cookie is well split according to the screenshots in my first link. That’s a common error.

Don’t post any errors in the ST community forum as there is confidential info about your Nest installation.

Regards

Hi,

If you have lost your auth tokens from Nest and/or migrated to a Google Account, and your ST-Nest integration is not working anymore, then the new versions of MyNextManager(V2.6.6), MyNextTstatV2 (v2.4.2), MyNextAlarmV2 (v2.4.4) and MyNextSensorV2 (v2.1.6) may be for you.

The Nest protects and Nest Tstats can now detect motion. If you want to use that feature, I’d recommend changing the polling interval to 1 minute in MyNextManagerV2 for faster updates.
For the Nest Tstat, you’d need to activate motion detection. Make sure you have the latest firmware version for all your devices.

You can also use the motion capability in your WebCore scenarios.

You can now download the new major version at my store:
www.ecomatiqhomes.com/store

If you are already a contributor, you just need to use the original sellfy download link to get the new minor versions. The zip file contains all the required files for update and some release notes.

  • MyNextManagerV2.6.6: minor change to avoid null values in cookie
  • MyNextTstatV2.4.2: corrected away() and present() methods to properly set the Nest structure
  • MyNextAlarmV2.4.4: corrected away() and present() methods to properly set the Nest structure

_MyNextManagerV2 (service manager for My Next devices) now uses the Nest Web APis (not the “official” APIs as they have ended since August 31, 2019). The Web APIs don’t have the strict rate limiting as the old APIs and they are as responsive as the native Nest application.

_ MyNextTstatV2 now natively supports the following commands:

  • setHotWaterBoost: in the device UI and as a command for WebCore users. This is useful for Nest users in Europe.
  • setTargetHumidity: to set a target humidity level (for the control of your humidifier/dehumidifier connected to Nest)

For the full list of attributes, capabilities & commands supported,refer to the ST community wiki:

https://thingsthataresmart.wiki/index.php?title=My_Next_Tstat

https://thingsthataresmart.wiki/index.php?title=My_Next_Alarm

MyNestTstatP1

FYI, there are also some complimentary smartapps at my github:
https://github.com/yracine/device-type-myNext/tree/master/smartapps

Regards.

Hi, I found an issue with the away() and present() methods after further testing.

The issue is now solved.

You need to download the latest version of the DTH and NestChangeMode, save & publish in the IDE.

Regards.

Looks like it is working now, thanks for the quick fix!

Small issue I noticed when I came home last night. Nest account switched to Home but the thermostat was still in Eco. How do I make the thermostat return to it’s previous mode.

Hi,

For all Nest users regardless if you have a Nest or Google account, my code can expose all your Nest Tstats, Protects, and Sensors under your Nest primary account (except the ones from a partner program such as with an utility).

And, if you have lost your auth tokens from Nest and/or migrated to a Google Account, and your ST-Nest integration is not working anymore, then the new versions of MyNextManager(V2.6.6), MyNextTstatV2 (v2.4.4), MyNextAlarmV2 (v2.4.4) and MyNextSensorV2 (v2.1.7) may be for you.

The Nest protects and Nest Tstats can now detect motion. If you want to use that feature, I’d recommend changing the polling interval to 1 minute in MyNextManagerV2 for faster updates.
For the Nest Tstat, you’d need to activate motion detection. Make sure you have the latest firmware version for all your devices.

You can also use the motion capability in your WebCore scenarios.

You can now download the new major version at my store:
www.ecomatiqhomes.com/store

If you are already a contributor, you just need to use the original sellfy download link to get the new minor versions. The zip file contains all the required files for update and some release notes.

  • MyNextManagerV2.6.6: minor change to avoid null values in cookie
  • MyNextTstatV2.4.4: corrected setThermostatMode() and home() methods to revert in all cases from eco mode, and corrected setHold() method for auto mode.
  • MyNextAlarmV2.4.4: corrected away() and present() methods to properly set the Nest structure
  • MyNextSensorV2.1.7: corrected units for display in new Samsung connect app

_MyNextManagerV2 (service manager for My Next devices) now uses the Nest Web APis (not the “official” APIs as they have ended since August 31, 2019). The Web APIs don’t have the strict rate limiting as the old APIs and they are as responsive as the native Nest application.

_ MyNextTstatV2 now natively supports the following commands:

  • setHotWaterBoost: in the device UI and as a command for WebCore users. This is useful for Nest users in Europe.
  • setTargetHumidity: to set a target humidity level (for the control of your humidifier/dehumidifier connected to Nest)

For the full list of attributes, capabilities & commands supported,refer to the ST community wiki:

https://thingsthataresmart.wiki/index.php?title=My_Next_Tstat

https://thingsthataresmart.wiki/index.php?title=My_Next_Alarm

MyNestTstatP1

FYI, there are also some complimentary smartapps at my github:
https://github.com/yracine/device-type-myNext/tree/master/smartapps

Regards.

OK, I fixed the issue about eco mode not reverting once for all. In some cases, the code was not able to do it: it was not consistent due to the way the Nest web APIs need to be called.

Now, the eco reverting method is always called when the target mode is not eco.

You need to download MyNextTstatV2.4.3, save & publish in the IDE.
Regards.

1 Like

Awesome, thanks!

I will do some testing later when it is not 100+ degrees outside. :slight_smile:

Just implemented the MyNextManager and so glad to have my Smartthings connected again. Very pleased with the support given during set up. Fast response to questions asked.

1 Like

Hi, You can get the new version of MyNextTstatV2 (v2.4.3) which corrects some eco reverting issues using the same sellfy download link.

If I want to download the Monitor Nest Humidity smart app, will I need to download the MyNext Manager all over again, or just download the Humidity Monitor smart app? It appears from the description that you can control a device like a smart plug to turn on or off based on the Monitor Humidity smart app, is that correct?

Hi,

You just need to upload the MonitorAndSetNestHumidity from the github.

You can use the github integration with the following parameters or upload the file manually.

And, yes, the smartapp can trigger some switch(es) for humidity control.

GitHub Settings:

Owner : yracine

Name : SmartThingsPublic

Branch : master

For more details and screenshots, refer to the ST community wiki:

https://thingsthataresmart.wiki/index.php?title=MonitorAndSetNestHumidity

Hi Yves. I installed monitor and set humidity. I tried twice to use it and set parameters. It failed both times. Now I have 2 instances of it

in my smartapps and can open neither to change it or even delete it.

Hi, do you have any errors in the logs?

It works well for me. You may have used some sensors or weatherStation that are not compatible.
Only the sensors and the ST standard WeatherStation (ST weatherTile) which support the ST standard capabilities are supported…

To remove the smartapp, you can click on it under Automation/smartapps in the ST classic app, and press the “remove” button on the 1st page (need to scroll down).

Regards.

Yes sir, but it won’t open. I have rebooted phone and neither instance will open for me to delete. The ‘working’ spinning symbol happens and then it stops but will not open

And I have none of those sensors and so that is likely why it failed but I can’t delete it

Well, I don’t know what’s going on under your ST account. It may not be related to my smartapps.

But, you can try to uninstall the smartapps in the IDE, under location/smartapps.

Thank you! I was able to delete them that way. Incidentally, when I tried to open both instances, this was the error log. ‘5:47:43 PM: error java.lang.NullPointerException: Cannot invoke method minus() on null object @line 891 (fToC)’
Either way, gone now. Thank you