ottoszika / node-red-contrib-ewelink

NodeRED nodes for eWeLink smart devices
https://ottoszika.github.io/node-red-contrib-ewelink
MIT License
49 stars 28 forks source link

Working solution to node-red-contrib-ewelink does not anymore connect #169

Open ewidance opened 4 months ago

ewidance commented 4 months ago

Hi,

Many of you have realized that it is no longer possible to connect and therefore control your ewelink modules from node-red-contrib-ewwelink. This is due to the obsolescence of the authentication method used, now replaced by OAUTH2. "domesticstreamers " posted an update with OAUTH in project node-red-contrib-ewelink-apikey. It's available at https://flows.nodered.org/node/node-red-contrib-ewelink-apikey but the code is not on Git. To make it work, you will need an API key, to be created at https://dev.ewelink.cc/, and enter it in the config node. For the rest apparently it seems to work like node-red-contrib-ewelink. I only tested it on Sonoff DIY switches.

node-red-contrib-ewelink must be uninstalled first before installing node-red-contrib-ewelink-apikey. Backup your flows!

It would be great if the initial project and documentation was updated with these modifications.

In any case thanks to https://flows.nodered.org/user/domesticstreamers for these modifications.

fercod commented 3 months ago

Hi,

Many of you have realized that it is no longer possible to connect and therefore control your ewelink modules from node-red-contrib-ewwelink. This is due to the obsolescence of the authentication method used, now replaced by OAUTH2. "domesticstreamers " posted an update with OAUTH in project node-red-contrib-ewelink-apikey. It's available at https://flows.nodered.org/node/node-red-contrib-ewelink-apikey but the code is not on Git. To make it work, you will need an API key, to be created at https://dev.ewelink.cc/, and enter it in the config node. For the rest apparently it seems to work like node-red-contrib-ewelink. I only tested it on Sonoff DIY switches.

node-red-contrib-ewelink must be uninstalled first before installing node-red-contrib-ewelink-apikey. Backup your flows!

It would be great if the initial project and documentation was updated with these modifications.

In any case thanks to https://flows.nodered.org/user/domesticstreamers for these modifications.

Why isn't the code public on GitHub? It doesn't feel very secure...

fercod commented 3 months ago

For anyone trying to find a solution, I can recommend this module: node-red-ewelink-v2-oauth

Working and well documented.

https://github.com/FloFlal/node-red-ewelink-v2-oauth/blob/main/docs/index.md