Giter VIP home page Giter VIP logo

Comments (6)

ksnagesh19 avatar ksnagesh19 commented on August 9, 2024

Can you post the code, please to cross check.

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

Ynot1 avatar Ynot1 commented on August 9, 2024

Answering my own question from a few months ago
To run more than one instance of this code, at least the serial number in switch.cpp needs to be unique, or Alexa loses touch with one of the devices after a while.
I fiddled with the01-NLS line in the xml and made that unique as well. All good now.

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

ksnagesh19 avatar ksnagesh19 commented on August 9, 2024

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

kakopappa avatar kakopappa commented on August 9, 2024

@Ynot1 can you upload the fixed code?

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

Ynot1 avatar Ynot1 commented on August 9, 2024

I have hacked that code so much while customising it into a specific application that i hesitate to do that. I will upload the 3 changed lines as pseudo code in a day or to.

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

Ynot1 avatar Ynot1 commented on August 9, 2024

I have made more discoveries with having multiple instances of this code running in a single network, there are several places in the code that values have to be unique in the same LAN.

In the main sketch make this unique:

local Port numbers in the command that defines each switch
// Format: Alexa invocation name, local port no, on callback, off callback, Alexa talley indicator

Alexa wont discover devices whereduplicate port numbers are used

in switch.cpp make all these unique:

sprintf_P(uuid, PSTR("38323636-4558-4dda-9188-cda0e6%02x%02x%02x"), // as released by kakopappa
"221517K0101769" //as released by kakopappa
"01-NLS: b9200ebb-736d-4b93-bf03-835149d13983\r\n" //as released by kakopappa

Although Alexa will initially discover the devices if these arent unique, she will only maintain control of the last device found.

And, to save him the trouble of adding the comment himself, kakopappa would say "Use Sinric skill instead to solve all these issues"

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.