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.

    Nest Thermostat & Protect

    Scheduled Pinned Locked Moved Unsolved Requests
    22 Posts 6 Posters 18.5k Views 6 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.
    • mochmanM Offline
      mochman Module Developer
      last edited by

      I just took a wack at making a Nest Module. It works, but it’s a pain to set up. Nest has you walk through a bunch of hoops to get an account so you can get a token for your nest. I made a simple script that walks you through it in the root folder. The Module is very basic right now. It just displays your current temp, requested temp, and humidity. I will try to change it in a little bit to make it look like the Nest (Have a blue background around your Temp to indicate it’s cooling, etc…). If you want to take a hand at making it look better, please go right ahead.

      I am using the REST format to get all the data. If someone knows how to use firebase, that’s what Nest prefers you use to get all the info.

      Wilco89W S 2 Replies Last reply Reply Quote 1
      • Wilco89W Offline
        Wilco89 @mochman
        last edited by

        @mochman i will look in it asap, i’m really busy atm.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sachin @mochman
          last edited by

          @mochman Works like a charm! The only thing I would like to see is the fan icon if the fan is running without the AC or Heat on.

          1 Reply Last reply Reply Quote 0
          • mochmanM Offline
            mochman Module Developer
            last edited by

            @Sachin Sure. I’m in the middle of a move right now, but once I get settled in I take a look at it. It should be pretty straightforward.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Sachin @mochman
              last edited by

              @mochman Awesome, thank you!

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aartsie
                last edited by

                Nice job @mochman i was working on it as well before i saw yours just on time.
                Maybe it is better to put the Nest API pin code on the config file and let the module get the auth code from the API.

                This because the auth code has a expire date so you will replace it every year and it makes it easyer to install.
                If you need some help… maybe i can help you with it.

                mochmanM 1 Reply Last reply Reply Quote 0
                • pugslyP Offline
                  pugsly
                  last edited by

                  So I got around to setting this up today, got my product ID, the secret, and even the PIN code. Put it into the gettoken.sh and it spit out my token. I added it into my config.js and I see the little circle on my mirror, but the temp is different then what the nest shows. I’m also guessing that the % at the bottom is the inside humidity which also is not what the thermostat shows.

                  Any ideas?

                  1 Reply Last reply Reply Quote 0
                  • mochmanM Offline
                    mochman Module Developer
                    last edited by

                    Can you take a screenshot of what it is showing you and what it should be showing?

                    1 Reply Last reply Reply Quote 0
                    • mochmanM Offline
                      mochman Module Developer @Aartsie
                      last edited by

                      @Aartsie Any help would be great. I’ve been in the process of moving so all my stuff is still scattered around the house.

                      1 Reply Last reply Reply Quote 0
                      • pugslyP Offline
                        pugsly
                        last edited by

                        ok, rebooted everything and its now showing the set temp, and turning blue while running but the number inside the circle showing the current temp never changes, stays at 68 even though the thermostat is showing the correct room temperature.

                        Humidity % also seems correct now.

                        mochmanM 1 Reply Last reply Reply Quote 0
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer
                          last edited by

                          maybe it’s a problem with the unit? °C and °F

                          Please create a github issue if you need help, so I can keep track

                          1 Reply Last reply Reply Quote 0
                          • mochmanM Offline
                            mochman Module Developer @pugsly
                            last edited by mochman

                            @pugsly Can you take a screenshot and post it along with what it should be showing? The way I have it configured, the small number is your current temp and the big number is the target temp.

                            1 Reply Last reply Reply Quote 0
                            • pugslyP Offline
                              pugsly
                              last edited by

                              0_1467589958801_settings.PNG 0_1467590036578_Mirror-s.jpg

                              1 Reply Last reply Reply Quote 0
                              • pugslyP Offline
                                pugsly
                                last edited by

                                Doesn’t matter what the thermostat says the inside temp is, the mirror always says its 68 deg.

                                1 Reply Last reply Reply Quote 0
                                • mochmanM Offline
                                  mochman Module Developer
                                  last edited by

                                  Hmm, it looks like you have it set up to heat/cool. I haven’t programmed that function so I don’t know if the data the Nest API sends is correct. Can you switch it over to cooling only and see if that fixes your temp?

                                  1 Reply Last reply Reply Quote 0
                                  • pugslyP Offline
                                    pugsly
                                    last edited by

                                    ah yes, that was it. I like keeping it in heat/cool mode and I have a program all setup, don’t really want to change it.

                                    How hard would it be for you to code it that way?

                                    1 Reply Last reply Reply Quote 0
                                    • mochmanM Offline
                                      mochman Module Developer
                                      last edited by

                                      It shouldn’t be that difficult. Can you add an issue to the repo and I’ll mess around with the code.

                                      1 Reply Last reply Reply Quote 0
                                      • pugslyP Offline
                                        pugsly
                                        last edited by

                                        Its a little better, its now showing what my HEAT temp is set to, but not the COOL. Ideally it would show both with the dot in the middle as in the screen shot above, or if that’s not possible show the COOL setting when cooling, and the HEAT setting when heating and have the circle change colors.

                                        mochmanM 1 Reply Last reply Reply Quote 0
                                        • mochmanM Offline
                                          mochman Module Developer @pugsly
                                          last edited by

                                          @pugsly It should work as requested now. I merged the branch with the master so you can just update the master now. If the text looks weird it’s probably because I don’t know css and just made up stuff until it worked on my screen.

                                          1 Reply Last reply Reply Quote 0
                                          • mochmanM Offline
                                            mochman Module Developer
                                            last edited by

                                            Here’s what it should look like for you.
                                            Nest Module

                                            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
                                            • 2 / 2
                                            • 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