MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!

    Scheduled Pinned Locked Moved Utilities
    nestthermostatprotectsmoke detector
    65 Posts 18 Posters 53.7k Views 18 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      costascontis
      last edited by

      isnt updateinterval in ms?cause if it is then 60000 ms = 1min…

      michael5rM 1 Reply Last reply Reply Quote 0
      • michael5rM Offline
        michael5r Module Developer @costascontis
        last edited by

        @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 :)

        1 Reply Last reply Reply Quote 0
        • N Offline
          nhl @costascontis
          last edited by

          @costascontis Make sure the away read permission is active on your nest development OAuth client
          0_1550527074655_f39cdd41-e38c-4ee8-9d82-29b37f2a78bf-image.png

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            costascontis @nhl
            last edited by

            @nhl in my Other Permissions Away read is greyed out.
            0_1550599997962_Screenshot (10).png

            michael5rM 1 Reply Last reply Reply Quote 0
            • michael5rM Offline
              michael5r Module Developer @costascontis
              last edited by

              @costascontis It shouldn’t matter - I don’t use the Away read setting in this module. The settings that matter are the ones directly tied to the thermostat and smoke detectors.

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                costascontis @michael5r
                last edited by

                @michael5r my Thermostat read is greyed out too …is that matter?
                0_1550600653289_Screenshot (12).png

                michael5rM 1 Reply Last reply Reply Quote 0
                • michael5rM Offline
                  michael5r Module Developer @costascontis
                  last edited by

                  @costascontis No, that’s fine - directly below you’ve enabled read/write, so that supersedes the standalone read setting.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    costascontis
                    last edited by costascontis

                    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-status
                    

                    until it stops and stop updating the nest status also.Is that normal?

                    michael5rM 1 Reply Last reply Reply Quote 0
                    • C Offline
                      costascontis
                      last edited by

                      @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…

                      michael5rM 1 Reply Last reply Reply Quote 0
                      • michael5rM Offline
                        michael5r Module Developer @costascontis
                        last edited by

                        @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-status
                        

                        until it stops and stop updating the nest status also.Is that normal?

                        Yes, that’s totally normal. The mmm-nest-status module is broadcasting a notification to all modules saying that data is available - it’s how the socket notification system works.

                        1 Reply Last reply Reply Quote 0
                        • michael5rM Offline
                          michael5r Module Developer @costascontis
                          last edited by

                          @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!

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            costascontis
                            last edited by costascontis

                            @michael5r just asking…why nest-status need to send notifications to other modules ?

                            michael5rM 1 Reply Last reply Reply Quote 0
                            • michael5rM Offline
                              michael5r Module Developer @costascontis
                              last edited by michael5r

                              @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-status isn’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.

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                numb3rs
                                last edited by

                                With the sell of Nest to Google, is this module still working at all?

                                michael5rM 1 Reply Last reply Reply Quote 0
                                • michael5rM Offline
                                  michael5r Module Developer @numb3rs
                                  last edited by

                                  @numb3rs It works just fine if you have an existing Nest developer account, but as I also posted in the repo for the module, there’s currently no way for new users to use the module.

                                  Still waiting on Google to open their Individual Device Access program:
                                  https://developers.google.com/nest/device-access

                                  K 1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    kash @michael5r
                                    last edited by

                                    @michael5r
                                    i have not migrated to a google account yet and still have a existing developers account. how do i get the token?

                                    michael5rM 1 Reply Last reply Reply Quote 0
                                    • F Offline
                                      fordi
                                      last edited by

                                      spectacular!!!

                                      1 Reply Last reply Reply Quote 0
                                      • michael5rM Offline
                                        michael5r Module Developer @kash
                                        last edited by michael5r

                                        @kash said in MMM-Nest-Status - New module for your Nest thermostats and protect smoke detectors!:

                                        @michael5r
                                        i have not migrated to a google account yet and still have a existing developers account. how do i get the token?

                                        Download the previous version of the module:
                                        https://github.com/michael5r/mmm-nest-status/tree/fcbf291a26374e32901e993f9e109465819f59bf

                                        It has the shell script that allows you to get a token.

                                        J 1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          fordi
                                          last edited by

                                          I dont have a developers account but could do with one. It’s so frustrating now i want to add modules to my mirror.

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            JohnBachini @michael5r
                                            last edited by

                                            @michael5r
                                            Is this the same token obtained doing this .??

                                            https://github.com/USA-RedDragon/badnest

                                            michael5rM 1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy