Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
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)
- Missing OnEvent ?
- LwIP Variant set to v1.4 Higher Bandwidth HOT 2
- device is unresponsive HOT 3
- Status of element
- ESP32 Device fails to be recognised after a while
- double action with Alexa HOT 1
- how to setDeviceUniqueId with an example HOT 3
- I ported fauxmoESP for Raspberry Pi Pico W HOT 1
- 'class fauxmoESP' has no member named 'onGetState' HOT 15
- Not all devices respond any more HOT 1
- Alexa drops FauxmoESP after some time HOT 6
- setDeviceUniqueId only sets first 12 characters of uniqueId HOT 4
- How can use this lib to control the device colors? HOT 1
- Infrequent crashes caused by a bug HOT 3
- Disable fauxmo does not disable internal web server
- Device not found by Alexa with release 3.4.0
- Strange behavior with command HOT 4
- Allow devices to show up as a smart plug.
- Echo Dot 3 doesn't detect device.
- Where best to feed a watchdog?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fauxmoesp.