This project contains a server component and a domoticz plugin. This project has been made by vdkuil and has been improved by me.
Clone this project using git: git clone https://github.com/zarebok/sonoff.git
Change tot the proper folder: cd sonoff/server Install the base modules using npm:
npm install ewelink-api
npm install express
npm install minimist
node server.js -e email
-p password
-r us -o 8081 -i APPID -s APPSECRET
The parameters -r and -o are optional
The parameters -i and -s should both be specified or none
copy sonoff/plugin/plugin.py from the previous checkout to domotiz/plugins/SonOff/plugin.py
You have to make sure you have python3 (and python3-dev) installed on your domoticz system. Usually this can be done with
apt-get install python3-dev