Domoticz plugin for Sonoff Original Soft eWeLink API
node -v
v10.21.0
go to next pointnpm install ewelink-api
YOUR_DOMOTICZ_PATH/plugins
directory
cd YOUR_DOMOTICZ_PATH/plugins
git clone git@github.com:MarcelSlabosz/domoticz_sonoff_ewelink_api_plugin.git
systemctl restart domoticz.service
YOUR_DOMOTICZ_PATH/plugins/domoticz_sonoff_ewelink_api_plugin/
credentials_template.js
to credentials.js
cp credentials_template.js credentials.js
credentials.js
file and type your eWeLink account credentials: email, passwordnode get_credentials.js
node list_devices.js
This command will list all devices added to your eWeLink account. Unfortunately there is no human readable names. Base on model and created date try to choose right device id .
Go to Setup -> Hardware
Add new Hardware Type "Sonoff Original Soft eWeLink API"
Fill form with parameters obtained in previous section
Click Add.
Now new device should appear in Domoticz: {Name} - Switch
To add multiple hardware instances you must use same Application token, Application key pair
in all off them. Each time when you call node get_credentials.js
you need update parameters in all instances.
"Node.js is not installed or not added to PATH!" is reported to logs.
"Plugin file call_ewelink_api.js was deleted! Revert changes in plugin dir." is reported to logs.
Probably some plugin file was accidentally removed. Revert changes by calling command
git reset --hard
in plugin root directory. If it doesn't help, please report the issue:
https://github.com/MarcelSlabosz/domoticz_sonoff_ewelink_api_plugin/issues