[Depecrated] My Next Manager for your Nest® Tstats (firmware below 2.3), Protects and Sensors: all Nest attributes available (home/away, motion detection, setTargetHumidity, setHotWaterBoost) for automation-and no throttling!

Can't use the dates as hubitat can't compare dates. I use the dates to compare the string last connection with the last checked but they often are few.minutes apart.
As for the log (trace403) .I can't use the logs in the rules.

I can use node-red to catch the trace just wondering if there is a direct 'hubitat way'.

Hi, verboseTrace is not some logs, it's an attribute within MyNextTstat. You can subscribe to it and parse the attribute like any other String.

P.S. The google connection should stay valid unless you change your Google password or 2FA settings (or you log off from your Nest session).
Regards.

Hi,

Just want to inform my contributors and all Nest users that new versions of MyNextManager (v3.4.1), MyNextTstat(v3.5), MyNextSensor(V3,0) can be downloaded at my e-commerce solution provider (sellfy) using the original download link.

You can download the Next devices at my store:

https://www.maisonsecomatiq.com/hubitatstore

  • The new versions allow faster processing (and faster caching checks) in MyNextManager and add some capabilities to make MyNextSensor active or inactive using the Switch capability built-in.

  • All you need to do is to copy &paste the new code over the existing one for the device drivers and MyNextManager

  • Prior to the code upload, you'd just need to save the tokens info and restore it after the copy & paste.

  • Since V3 of MyNextDevices, the UI presentation adds the following commands for controlling your HVAC:

    • setTargetHumidity: to control your humidity inside your home via your dehumidifier/humidifier connected to Nest
    • setHotWaterBoost: to set a boiler's hotWaterBoost timer in minutes (Europe)
    • Nest Home or Away: to set your Nest structure to Home or Away.
    • setThermostatFanSchedule: to create fan schedules at your tstat
    • setThermostatFanTimer: to set the fan timer in minutes
    • setDualFuelBreakpointTemp: if you have dualFuel/alt/emergency heating, you can set the breakpoint temperature for switching to dualFuel/alt/emergency heating
    • setDualFuelBreakpointMode: You can set the following mode for alt/emergency/dual heating: "DUALFUEL_BREAKPOINT_ALWAYS_ALT" or "DUALFUEL_BREAKPOINT_ALWAYS_PRIMARY". This command allows finer control of your dualFuel/alt/emergency heating.

MyNextTstat (p1)

MyNextTstat (p2)

MyNextAlarm For Protects

MyNextSensor with new capabilities (switch on/off to make it active/inactive)

On top of it, there are many complimentary smartapps designed for My NextTstat DTH and are located at my github.

You can also refer to the 1st post of this thread for all the use cases supported.

MyNextManagerV3.4.1, MyNextTstatV3.5, MyNextAlarmV3 (For Protects), MyNextSensor V3 are available at my store:

https://www.maisonsecomatiq.com/hubitatstore

P.S. As a reminder, MyNext devices are fully compatible with dashboards (ex. SharpTools) and rule engines (RM, WebCore, Sharptools).
Regards

2 Likes

Ah yes found it. There are so many attributes. Didnt catch that one.

PS) I know it should, but it sometimes looses connection for whatever reason and I don't mind it (it happens seldomly) but when it does I want to be notified in all ways possible, especially in times like these when i need the Nest to be online (winter here). :slight_smile:

It looks like Nest/Google may have shifted some APIs or REST endpoints @yracine66....

I can still do a setStructure[Home,Away], but any attempts to do a heating or cooling setpoint result in a 403 error....

setHeatingSetpoint>65 was not set, exception doRequest>exception groovyx.net.http.HttpResponseException: Forbidden,error response=403 for [uri:https://czfe44-front01-iad01.transport.home.nest.com/v5/put

Auth key removed for obvious reasons...

Update: recopied my auth key again using the setup procedure - same issue. Clearly, Google changed a REST endpoint somewhere.

Hi @guywmartin ,

The google connection should stay valid unless you change your Google password or 2FA settings (or you log off from your Nest session).

If you have the 403 http error (unauthorized), this means that you've lost your auth tokens (and your end points are no longer valid).

To get new auth tokens (and valid end points), please follow the steps at the community wiki (with screenshots).

You don't need to re-start from scratch, just extract and save the required login info.

Refer to:

https://thingsthataresmart.wiki/index.php?title=My_NextServiceMgr#14b.29_LOGIN_INFO_REQUIRED_FOR_GOOGLE_ACCOUNT_USERS_.28MIGRATED_NEST_USERS.29

Regards.

@yracine66,

Please see my 'Update' section. I did get auth tokens again, and went through the whole setup within myNextManager to find the Nest Thermostat and Protects, which (re)created the devices for me. So, that auth works fine. I copied both the new endpoint and the auth token, as shown in your docs.

Additionally, setStructureHome and setStructureAway work and are authorized. I suspect that the setHeatingSetpoint URL or endpoint may have changed.

@guywmartin, I will not post the whole http put, but it works fine for me. So, I suggest that you restart from scratch your installation. There is no exception on my end.

Each end point is dependent on your auth tokens. Some commands may work, but not all of them if your auth tokens are not valid.

dev:2452021-03-24 19:44:55.482 debug setHold>done
dev:2452021-03-24 19:44:55.274 info doRequest>about to put with params= [uri:https://xxx.home.nest.com/put, headers:[Authorization:Basic xxxx, query:[format:json], charset:UTF-8, Content-Type:application/json,
dev:2452021-03-24 19:44:55.270 info doRequest>argsInJson= {"objects":[{"object_key":"xxxxx","op":"MERGE","value":{"target_temperature":22.77777777777778}}]}
dev:2452021-03-24 19:44:55.248 info doRequest>objects= [objects:[[object_key:xxxxxxxxxxxxxx, op:MERGE, value:[target_temperature:22.77777777777778]]]]
dev:2452021-03-24 19:44:55.243 info doRequest>about to put with uri https://xxx.home.nest.com/put, args= [object_key:xxxxx, op:MERGE, value:[target_temperature:22.77777777777778]]
dev:2452021-03-24 19:44:55.239 debug api> about to call doRequest with (unencoded) args = [object_key:xxxxx, op:MERGE, value:[target_temperature:22.77777777777778]]

Regards

Thanks.. I'll take another look, but this was previously working, and even after recopying the google_issue_token_url and google_cookiep1 values again, I get the same error.

I may just try the other option I've seen here in the community, as this method, while inventive, seems too hard to manage long term.

Thanks.

Sure, you should do as you please.

However, like I wrote above, your google connection stays valid unless you change your Google password or 2FA settings (or you log off from your Nest session). You'd need keep your Nest session active to avoid any http error 403.

Regards

1 Like

Thanks - my Nest session is always active because I keep the web interface up in Chrome for other reasons... I'll give it one more shot with the tokens and see if I can find the issue.

Thanks.

Hi, please make sure to download the latest release using the same sellfy download link and restart the installation from scratch (as there is something odd under your account).

1 Like

This solved my issue as well! Thank you @yracine66!

1 Like

I just have to say thank you for your hard work on this! It saved me the time of dealing with Google's API directly.

1 Like

What kind of things you can you do with Nest Protect and this App? Aside from (I assume) allowing you to see new smoke/CO detectors in your Dashboards, are there any other applications with the Nest Protect?

Hi @Krishna , please refer to the list of capabilities and commands available in the following community wiki:

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

As indicated in the 1st post of this thread, you can also have access to the motion and presence sensors (if your protect is wired, and have the latest firmware) for your own automation scenarios.

Regards.

1 Like

Hello,

I've just gotten MyNextManager installed in Hubitat and can't seem to get it to work fully. I believe I've followed all of the steps in the installation doc. Once completing the cookie and url variables and installing the app, it appears that all the settings are pulled in from the thermostat and its current state is displayed correctly on a dashboard tile. However when making a temperature change via a dashboard tile, I receive the following log entry "java.lang.ClassCastException: null (setCoolingSetpoint)". When making an a temperature adjustment on the physical thermostat, it is not reflected in hubitat.

The above is the only error listed in 'MyTstat'.

The following error appears in 'MyNextManager':
org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: user_app_yracine_MyNextManager_337.delete() is applicable for argument types: () values: []
Possible solutions: sleep(long), sleep(long, groovy.lang.Closure), every(), getAt(java.lang.String), every(groovy.lang.Closure), split(groovy.lang.Closure) (delete)
purgeChildDevice>no more devices to poll, unscheduling and terminating the app

Hi, it doesn't look like the installation was completed properly. Please restart the installation from scratch and make sure to not log off from the active Nest session after copying the google cookie/url. You can close the browser, but not log off from the session. Also, if you change your password or 2FA settings, you'll lose your auth tokens (as indicated in the readme).

In order to get the detailed logging, you'd need to follow the steps under the troubleshooting section:

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

I can only help you with detailed logging. Don't post any logs in the forum, filter the logs for myNextManager only and send the logs to services@maisonsecomatiq.com.

Regards.

I just want to say, THANK YOU for this! I finally have full control over my entire HVAC system. I no longer have to deal with NEST's stupid schedule for sensors.

Only issue I had during install that I missed during the quick instructions was to enable OAUTH, and I had the issue where my TSTAT wasn't showing up in the list even with the google account authentication working... I did the reset WWN from the physical NEST tstat and then re added it to the app.

Once I did this I needed to do the authentication / setup again. I had to remove the previous MyNextManager (using the settings icon wheel while adding the user app) because I think it was still using the old authentication. Once I did that, readded with the new authentication information I was able to create all the devices!

Thanks again!

  • Shane
1 Like

[EDIT] Ignore this question I figured it out.. I needed to make sure sensor scheduling was turned on.. seems to be a requirement.. my bad.

Doesn't look like I can set my active sensor now.. Looked at the the tstat device in hubitat and noticed this.

setRCSActiveSensors>error while trying to call setThermostatSettings, exception doRequest>exception groovyx.net.http.HttpResponseException: status code: 401, reason phrase: Unauthorized,error response=401 for [uri:https://czfe08-front01-iad01.transport.home.nest.com/v5/put

I went through the next manager again to check to make sure everything is still connected and it populated all my sensors and tstat w/o having to do anything different.. So it seems to be connecting correctly.

I can also set the temp on the TSTAT device and it works.

Any suggestions?

Shane