bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
386 stars 126 forks source link

When connecting to ewelink an error occured during HTTP login #394

Closed Niklas31 closed 2 years ago

Niklas31 commented 2 years ago

What issue do you have? Please be as thorough and explicit as possible.

When connecting to ewelink an error occured during HTTP login.

Whenever I try to connect to my eWeLink account, logs show [eWeLink] An error occurred during http login(). I had I working until friday, but Hoobs started acting weird and I updated all my plugins. Since I have a Raspberry Pi Zero W, I can't use the latest plugings (node.js and Hoobs version problems). Therefore I completely reinstaled Hoobs v3.3.12 and my old plugings. Now I can't log on my eWeLink account.

Here is my configuration:

    "platforms": [
        {
            "mode": "lan",
            "multiDevices": [
                {
                    "ipAddress": "192.168.1.189",
                    "hideChannels": "0",
                    "deviceModel": "t",
                    "label": "Sala",
                    "deviceId": "100*****58"
                },
                {
                    "ipAddress": "192.168.1.167",
                    "hideChannels": "0",
                    "deviceModel": "t",
                    "label": "Cozinha",
                    "deviceId": "100*****32"
                }
            ],
            "password": "*****",
            "platform": "eWeLink",
            "name": "eWeLink",
            "plugin_map": {
                "plugin_name": "homebridge-ewelink"
            },
            "username": "*****",
            "language": "en"
        }

Details of your setup.

HOOBS v3.3.12 on a raspberry pi zero W

Please paste any relevant logs below.

7/25/2022, 9:29:57 AM [7/25/2022, 9:29:57 AM] The plugin "homebridge-ewelink" requires Node.js version of ^14.19.1 || ^16.15.0 which does not satisfy the current Node.js version of v12.19.0. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF
7/25/2022, 9:29:57 AM Loaded plugin 'homebridge-ewelink'
7/25/2022, 9:29:57 AM [7/25/2022, 9:29:57 AM] Registering platform 'homebridge-ewelink.eWeLink'
7/25/2022, 9:29:58 AM Loaded plugin 'homebridge-sensibo-ac'
7/25/2022, 9:29:58 AM [7/25/2022, 9:29:58 AM] Registering platform 'homebridge-sensibo-ac.SensiboAC'
7/25/2022, 9:29:58 AM [7/25/2022, 9:29:58 AM] The plugin "homebridge-webos-tv" requires Node.js version of >=16.0.0 which does not satisfy the current Node.js version of v12.19.0. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF
7/25/2022, 9:29:58 AM Loaded plugin 'homebridge-webos-tv'
7/25/2022, 9:29:58 AM [7/25/2022, 9:29:58 AM] Registering platform 'homebridge-webos-tv.webostv'
7/25/2022, 9:29:58 AM Loading 3 platforms...
7/25/2022, 9:29:58 AM [SensiboAC] Initializing SensiboAC platform...
7/25/2022, 9:29:58 AM [webostv] Initializing webostv platform...
7/25/2022, 9:29:58 AM [eWeLink] Initializing eWeLink platform...
7/25/2022, 9:29:58 AM [eWeLink] Initialising plugin v8.15.0 | System linux | Node v12.19.0 | HB v1.5.0 | HAPNodeJS v0.10.2 | HOOBS v3...
7/25/2022, 9:29:58 AM [webostv] Init - initializing devices
7/25/2022, 9:29:58 AM [webostv] [Tevelisão] Init - got TV configuration, initializing device with name: Tevelisão
7/25/2022, 9:29:59 AM [eWeLink] Plugin initialised. Setting up accessories....
7/25/2022, 9:30:00 AM Tevelisão 61C6 is running on port 36523.
7/25/2022, 9:30:00 AM Please add [Tevelisão 61C6] manually in Home app. Setup Code: 031-22-021
7/25/2022, 9:30:00 AM Bridge is running on port 51826.
7/25/2022, 9:30:02 AM [eWeLink] Sending HTTP login() request.
7/25/2022, 9:30:06 AM [eWeLink] An error occurred during http login().
7/25/2022, 9:30:06 AM [eWeLink] ***** Disabling plugin. *****
bwp91 commented 2 years ago

Hi @Niklas31

Due to recent ewelink changes the only version of the plugin that works now is >=10

This also means the minimum node version required is 14.

bwp91 commented 2 years ago

You could look into installing this fork of the plugin by @0chil https://github.com/bwp91/homebridge-ewelink/issues/385#issuecomment-1179642706 but how to install this on hoobs 3 i wouldn’t know. The plugin only now supports hoobs 4.