Read the statement by Michael Teeuw here.
MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!
-
This is my first module I am attempting to install, and keep getting a Nest API Error:null. Total noob here, but I have registered as a developer, obtained Nest token/pincode, and believe I input code correctly into config.js file per below.
module: "mmm-nest-status", position: "top_right", config: { token: "my8characterpinfromnest", displayType: "grid", displayMode: "all", thermostatsToShow: "all",Any ideas how to resolve the API issue?
-
@eawalker1 If your token is 8 characters long, it’s not the correct Nest token. It should be a long-ass string that usually begins with
c.I think you’re confusing the token with the PIN you get from Nest.Did you run the
getToken.shbash script in the module? It has multiple steps - you start by entering theclient idandclient secretwhich then generates a URL you need to open in a browser to get a PIN.You then enter the PIN in the bash script and on the next screen, it should display your actual token.
-
@michael5r Nope, that did the trick. Thanks.
-
@eawalker1 said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:
@michael5r Nope, that did the trick. Thanks.
Great :thumbs_up:
-
thnx for your hard work ,i really like this module,but its not updating right.When i restart MM works fine for few hours and then stops updating.My token is working fine ,i use it also to my Openhab setup .Also my other modules are all updating fine.My config is :
{ module: "mmm-nest-status", position: "top_center", // pick whichever position you want config: { token: "c.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", displayType: "grid", displayMode: "all", thermostatsToShow: "all", updateInterval: "60000", showNames: true, thermostatSize: "medium", // ... and whatever else configuration options you want to use } -
@costascontis You configuration looks fine - the
updateIntervalis set to 60000, so it’s only pulling data every 10 minutes.What exactly do you mean that it “stops updating”?
-
isnt updateinterval in ms?cause if it is then 60000 ms = 1min…
-
@costascontis said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:
isnt updateinterval in ms?cause if it is then 60000 ms = 1min…
My bad - you’re right, it’s 1 minute :)
-
@costascontis Make sure the away read permission is active on your nest development OAuth client

-
@nhl in my Other Permissions Away read is greyed out.

-
@costascontis It shouldn’t matter - I don’t use the
Away readsetting in this module. The settings that matter are the ones directly tied to the thermostat and smoke detectors. -
@michael5r my Thermostat read is greyed out too …is that matter?

-
@costascontis No, that’s fine - directly below you’ve enabled
read/write, so that supersedes the standalonereadsetting. -
found some time to debug why module stops updating.I think it has something to do with my on/off monitor function.I use Motion to turn on my mm tv when movement detected by sending a “/opt/vc/bin/tvservice -p ; sudo chvt 6 ; sudo chvt 7” command.After 5 min with no motion detected it power off my tv sending a “on_event_end /opt/vc/bin/tvservice -p”.I think that after some time of power off monitor the module’s update function breaks.All other modules i use they work and updating fine all the time.
EDIT: ignore all of the above,even when my screen is on the module stops updating after a few hours…I dont know what else to try…maybe some other module causing this?Is it possible?
EDIT 2: I opened the console at the developers tools inside mm and i notished that from the moment MMM-NEST-STATUS module starts spams with notifications clock and calendar modules like that
clock received a module notification: MMM_NEST_STATUS_UPDATE from sender: mmm-nest-status calendar received a module notification: MMM_NEST_STATUS_UPDATE from sender: mmm-nest-statusuntil it stops and stop updating the nest status also.Is that normal?
-
@michael5r after hours of tests i found out that if i use default clock and calendar module then after a few minutes nest module stop updating.If i dont use clock/calendar and comment them at config.js then nest module is working fine for days.I am not a developer but i suspect that has something to do with notifications between these modules…
-
@costascontis said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:
EDIT 2: I opened the console at the developers tools inside mm and i notished that from the moment MMM-NEST-STATUS module starts spams with notifications clock and calendar modules like that
clock received a module notification: MMM_NEST_STATUS_UPDATE from sender: mmm-nest-status calendar received a module notification: MMM_NEST_STATUS_UPDATE from sender: mmm-nest-statusuntil it stops and stop updating the nest status also.Is that normal?
Yes, that’s totally normal. The
mmm-nest-statusmodule is broadcasting a notification to all modules saying that data is available - it’s how the socket notification system works. -
@costascontis said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:
@michael5r after hours of tests i found out that if i use default clock and calendar module then after a few minutes nest module stop updating.If i dont use clock/calendar and comment them at config.js then nest module is working fine for days.I am not a developer but i suspect that has something to do with notifications between these modules…
I’ll see if I can recreate this with those modules - thanks for the doing the debugging!
-
@michael5r just asking…why nest-status need to send notifications to other modules ?
-
@costascontis said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:
@michael5r just asking…why nest-status need to send notifications to other modules ?
mmm-nest-statusisn’t sending a notification directly to other modules, it’s sending a global notification.But seeing that all modules listen for these notifications, the notification will also reach modules that don’t need or use it (which is where the console log you showed comes from - it’s basically all modules saying “I received a socket notification”, but it doesn’t mean they actually do anything with it).
That’s just how the magic mirror socket system works - every module that broadcasts data or status does this.
-
With the sell of Nest to Google, is this module still working at all?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
