wendlers / ediplug-py Goto Github PK
View Code? Open in Web Editor NEWSimple Python class to access a "EDIMAX Smart Plug Switch SP-1101W"
License: MIT License
Simple Python class to access a "EDIMAX Smart Plug Switch SP-1101W"
License: MIT License
Hi,
it would be great if you could provide a setup.py file to properly install the package: I'm currently doing some experiments on a beaglebone black board with the buildroot distribution.
Thank you in advance
Davide
You might also be interested to request the power stats for a day, week or month. You can find the respective payload definition here.
Hello and thanks for this solution, I wonder if i can migrate your code to android and inlcuded on a app that works with several plugs and IoT devices, the idea is 1 app to rule them all XD.
I am new to python so i cant read the code as i want to but i looks like that you are using an API to send rest calls to the device. Where did you get that API? do you have any documentation i can look for?
Hi,
I'm trying to control my Edimax SP 2101 W (Firmware 2.08 according to Edi life) and I get this error:
Exception: Failed to communicate with SmartPlug
The IP adress, the login and password are right as well...
I used exactly the same code for my SP 1101 and it was working perfectly...
Do you have any idea?
Thanks for your answer
Because I'm not into python it was cool if there was an example in that the script will read the status of the device and switch it then to off or on.
So it's possible to use Tasker and Tasker for Pebble to switch a plug's status with only one button.
I got this error, tested it on smartos (Solaris) and macOS 10.13:
Traceback (most recent call last):
File "smartplug.py", line 658, in
p = SmartPlug(options.host, (options.login, options.password))
File "smartplug.py", line 146, in init
res = requests.head(self.url)
NameError: global name 'requests' is not defined
requests is installed:
...
...
requests (2.18.4)
Too tired to find the problem :)...
Did anyone try / succeed with firmware version 3.0 which is latest for the SP-2101W V2 devices?
Just bought the EdiPlug 2101W today.
Unfortunately when I got home I've found that the app from Edimax does not work on my phone.
So I have this concern that the network is open:
Anyway your script saved me life! Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.