Giter Site home page Giter Site logo

Doesn't show up in WeMo app about fauxmoesp HOT 9 CLOSED

vintlabs avatar vintlabs commented on August 14, 2024
Doesn't show up in WeMo app

from fauxmoesp.

Comments (9)

pvint avatar pvint commented on August 14, 2024

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


I'm testing some changes in the library in the dev branch to make it compatible with some third party "wemo" clients like wemo-client (https://github.com/timonreinhard/wemo-client) and ouimeaux (https://github.com/syphoxy/ouimeaux). Maybe you can give it a try. Still cannot make it work with the official app :(

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Kevin Ghadyani (Bitbucket: Sawtaytoes, GitHub: Sawtaytoes).


Thanks! That'll allow writing custom software to control devices outside of the local network!

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Kevin Ghadyani (Bitbucket: Sawtaytoes, GitHub: Sawtaytoes).


After converting my Lua to C, I was able to pull the latest from dev and got it working. It showed up among my other official WeMo devices in the Node.js wemo-client!

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Kevin Ghadyani (Bitbucket: Sawtaytoes, GitHub: Sawtaytoes).


While the device shows up, it isn't able to be controlled via wemo-client. BinaryState isn't coming back so setting the device to a specific value isn't working.

TypeError: Cannot read property 'BinaryState' of undefined
    at D:\Projects\Personal\WeMo-Controller\node_modules\wemo-client\client.js:230:18

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Kevin Ghadyani (Bitbucket: Sawtaytoes, GitHub: Sawtaytoes).


After more research, the difference in services provided by fauxmoESP vs an official WeMo device are the services provided:

  services:                                                
   { 'urn:Belkin:service:WiFiSetup:1': [Object],           
     'urn:Belkin:service:timesync:1': [Object],            
     'urn:Belkin:service:basicevent:1': [Object],          
     'urn:Belkin:service:firmwareupdate:1': [Object],      
     'urn:Belkin:service:rules:1': [Object],               
     'urn:Belkin:service:metainfo:1': [Object],            
     'urn:Belkin:service:remoteaccess:1': [Object],        
     'urn:Belkin:service:deviceinfo:1': [Object],          
     'urn:Belkin:service:smartsetup:1': [Object],          
     'urn:Belkin:service:manufacture:1': [Object] } },     
  
    services:
   { 'urn:Belkin:service:basicevent:1': [Object],
     'urn:Belkin:service:metainfo:1': [Object] } } }

I wonder if the missing one is deviceinfo; although, based on the log messages, it may be something different.


HTTP/1.1 200 OK
CACHE-CONTROL: max-age=86400
DATE: Mon, 22 Jun 2015 17:24:01 GMT
EXT:
LOCATION: http://10.1.1.59:52000/setup.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 44455605E34C00
SERVER: Unspecified, UPnP/1.0, Unspecified
X-User-Agent: redsonic
ST: urn:Belkin:device:**
USN: uuid:Socket-1_0-44455605E34C00::urn:Belkin:device:**

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=86400
DATE: Mon, 22 Jun 2015 17:24:01 GMT
EXT:
LOCATION: http://10.1.1.59:52000/setup.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 44455605E34C00
SERVER: Unspecified, UPnP/1.0, Unspecified
X-User-Agent: redsonic
ST: urn:Belkin:service:basicevent:1
USN: uuid:Socket-1_0-44455605E34C00::urn:Belkin:service:basicevent:1

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


Can you share the code you are using with wemo-client. It works for me with this code (simple blink):

#!javascript
var Wemo = require('wemo-client');
var wemo = new Wemo();

wemo.discover(function(err, deviceInfo) {

  console.log('Wemo Device Found: %j', deviceInfo);

  // Get the client for the found device
  var client = wemo.client(deviceInfo);

  // Blink the lights
  var state = 1;
  var interval = setInterval(function() {
      console.log("State = " + state)
      client.setBinaryState(state);
      state = 1-state;
  }, 1000);

});

On the ESP8266 I have the default example, blinking the built in LED.

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Kevin Ghadyani (Bitbucket: Sawtaytoes, GitHub: Sawtaytoes).


The code I'm using is located here: https://github.com/Sawtaytoes/WeMo-Controller/tree/develop

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Houba 28 (Bitbucket: houba28, GitHub: houba28).


Hi, wanted to follow this and use dev branch, but it seems that after downloading a zip, including in Arduino IDE as zip repo and uploading the script to ESP it wont connect to wifi... Does anybody have the same problem? tried to remove imported folder and reimport old one... does not fix anything
also tried second esp I got here, seems to be a problem of the first board

from fauxmoesp.

pvint avatar pvint commented on August 14, 2024

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


Closing since this no longer applies to v3

from fauxmoesp.

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.