Announcement

Collapse
No announcement yet.

NodeMCU+Wifi guide for newbies?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NodeMCU+Wifi guide for newbies?

    Hello!

    I just today purchased a NodeMCU and I downloaded the plugin. I have not done programming or anything of its kind for many many years and I notice my head don't wrap around this easily.

    I am therefore looking to see if there is any HS3 users who has made a guide on how to get started with Wifi (not ethernet), and the NodeMCU connected to another computer by USB (not the HS3 server), and then get it connected inside HS3?

    I have been looking but everything I found so far as not been complete in the way I made it working, so I was hoping someone has something more thorough

    #2
    Bump
    i am also interested in learning how to do this, any info would be appreciated.
    Paul

    Comment


      #3
      Its actually not that hard, but you have to follow the instructions very carefully. Its in the beta sticky in this forum. I'm pretty similar to you and spent a couple hours figuring it out before realizing needs to be beta. Just got one working a few minutes ago and now trying to setup inputs.

      go to the plugins page and under beta install that version (1.0.0.148), open the plug-in and make sure it shows that version.
      Create a new board in there, set type to NodeMcu, give ip address, subnet, gateway (leave port and Mac alone), type in your SSID (wifi name) and password.
      Click download sketch for new board number
      click download arduino libraries
      click here to download Arduino IDE V1.8.1
      install Arduino IDE V1.8.1
      unzip downloaded libraries and copy to c:\program files x86\arduino, make sure there isn't a libraries folder inside the main libraries folder (download has folder inside a folder)
      In the Arduino IDE go to File, Preferences. Under Additional Boards Manager Urls add http://arduino.esp8266.com/staging/p...com_index.json then click OK.
      In the Arduino IDE go to Tools, Board, Board Manager and search for nodemcu and click install to install the board V2.3.0-rc2
      plug in your board to USB
      select com port
      under tools, board, chose the NodeMCU V1.0(ESP-12E Module)
      hit the verify checkbox
      hit the upload arrow
      if it says done uploading at bottom you should be good, if error then it didn't work
      wait a minute, then try to ping IP you set, if reply then its online
      in HS3 arduino configuration click connect and it should turn green, so its communicating.

      Then follow rest of arduino instructions to add inputs and devices to it.

      Comment


        #4
        I just use web pages hosted by the NodeMCU ESP8266, as outlined in this article but changed my code to do what I need. I set the NodeMCU to a static IP via my router. Now I can have a HomeSeer Event run an immediate script with this line as the command:
        Code:
        &hs.GetURL("192.168.1.200","/LED=ON",FALSE,80)
        For the test unit this turned on an LED. for the tutorial linked, the sub page has a different name and runs different code. My final is to run some flickering lights in a Halloween display to make it look as if items are lit by candles. I have the Event run when I want the display on, either by time or motion, or whatever you may choose. I also added a push button to toggle the lights on/off and added the event to my smart speaker voice control. Since the "commands" are done by accessing a web page, I was able to test with my phone and remove the need to be on HomeSeer.

        Pretty basic, but since I only need a couple functions, this works for my needs. Sorry that I am not using the plug-in (yet). This was my first Arduino project and it is doing what I need. As I get more complex I do intend to see how the plug-in can make life easier. Maybe when I go to control the Heat=N-Glow gas fireplace by sending the RF remote control codes. That was my initial reasoning for starting down this road. I just got sidetracked by a more pressing need.

        Karl
        Karl S
        HS4Pro on Windows 10
        1070 Devices
        56 Z-Wave Nodes
        104 Events
        HSTouch Clients: 3 Android, 1 iOS
        Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

        Comment


          #5
          Following this thread. Great stuff so far.

          Comment


            #6
            Newbie question:

            I have the NodeMCU all configured as described above, and it's communicating with the plugin. I'm at the stage now of adding input pins, but I don't see pin A0 (the A/D Converter pin). Does the plugin not support that pin??


            Rick

            Comment


              #7
              Originally posted by Rmasci64 View Post
              Newbie question:

              I have the NodeMCU all configured as described above, and it's communicating with the plugin. I'm at the stage now of adding input pins, but I don't see pin A0 (the A/D Converter pin). Does the plugin not support that pin??


              Rick
              Analog inputs are not supported on the NodeMCU at the moment. You can add them to your own sketch with the API.

              Regards.

              Greig.
              Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
              X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
              Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
              Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
              Scripts =
              Various

              Comment


                #8
                Greig;

                Thanks for the response, but unfortunately writing an API is not in my skill set
                Is adding that capability in the near term plans for the plugin?

                If not, is there another low power embedded WiFi board that the plugin supports the A/D function you could suggest?

                Rick

                Comment


                  #9
                  Rick,

                  Can you describe what you need and are there any digital pins available?
                  Karl S
                  HS4Pro on Windows 10
                  1070 Devices
                  56 Z-Wave Nodes
                  104 Events
                  HSTouch Clients: 3 Android, 1 iOS
                  Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

                  Comment


                    #10
                    I'm trying after many years to setup another board. This time a NodeMCU. However, after following these instructions I seem to be stuck at the follow:

                    In the Arduino IDE go to Tools, Board, Board Manager and search for nodemcu and click install to install the board V2.3.0-rc2.

                    I'm running 1.0.0.142 on HS3 and with 1.8.1 of the IDE. However, there is no listing for nodemcu. Can someone help with this?
                    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                    Comment


                      #11
                      Bump... I still cannot find nodemcu in the board manager. Anyone?
                      HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                      Comment


                        #12
                        Originally posted by langenet View Post
                        I'm trying after many years to setup another board. This time a NodeMCU. However, after following these instructions I seem to be stuck at the follow:

                        In the Arduino IDE go to Tools, Board, Board Manager and search for nodemcu and click install to install the board V2.3.0-rc2.

                        I'm running 1.0.0.142 on HS3 and with 1.8.1 of the IDE. However, there is no listing for nodemcu. Can someone help with this?
                        Try these instructions to install

                        https://create.arduino.cc/projecthub...ino-ide-28184f

                        Comment


                          #13
                          Well thank you very much for that drhtmal. Seems the URL to the json file is out of date in the HS3 documentation. Instead of http://.../staging/ is should be http://.../stable/.
                          I'm wondering if this has been updated for the HS4 plugin?

                          Anyway, I'm dangerous enough now to get started.

                          Thanks again!

                          Robert
                          HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                          Comment


                            #14
                            Originally posted by langenet View Post
                            ... Seems the URL to the json file is out of date in the HS3 documentation
                            Glad to help.

                            It is hard to keep documentation update especially when external links are embedded in the docs.

                            Comment

                            Working...
                            X