GithubHelp home page GithubHelp logo

Comments (7)

Ynot1 avatar Ynot1 commented on September 14, 2024

Have you tried editing and recompiling something simple, like blink?

from arduino-esp8266-alexa-multiple-wemo-switch.

Ade9000 avatar Ade9000 commented on September 14, 2024

from arduino-esp8266-alexa-multiple-wemo-switch.

Ynot1 avatar Ynot1 commented on September 14, 2024

Let's leave Adding a new device till later...

Starting with the code you pull from git, and USING THE FIND REPLACE FUCTION, (not your eye) swap "light" to "plug" or something else. Save, recompile.

Rinse and respeat making small changes each time along the way.

from arduino-esp8266-alexa-multiple-wemo-switch.

Ade9000 avatar Ade9000 commented on September 14, 2024

from arduino-esp8266-alexa-multiple-wemo-switch.

Ade9000 avatar Ade9000 commented on September 14, 2024

from arduino-esp8266-alexa-multiple-wemo-switch.

Ynot1 avatar Ynot1 commented on September 14, 2024

Assuming the original code you would search for "kitchen" and every time you find it, copy the whole line you found it on to the line immediately below and change your copied line to whatever you want the new device you want to be called.
As you have swapped kitchen to something else already , you will probably be searching for whatever you changed kitchen light to.
This will add about 6 lines of code to the top part of the code. The other change you should make is to tweak the local port number for your new device to 83 in your copy of line 45.

Copy the whole chunk of each of the two 4 line functions around the middle of the code ( lines 77-89 in the original) that mention kitchen several times, and again, change kitchen to whatever every time you find it in your copy. Also change switch 2 to 3 in your copied functions.

The code as released isn't going to actually close any relays of course, it's up to you to define which processor pins you want to use for that, make them outputs, and then put digital write commands into those on and off functions.

Good luck.

from arduino-esp8266-alexa-multiple-wemo-switch.

Ade9000 avatar Ade9000 commented on September 14, 2024

from arduino-esp8266-alexa-multiple-wemo-switch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.