Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonoffLANModeClient connection failed: did not receive a valid HTTP response #74

Open
quinzico opened this issue Oct 28, 2019 · 10 comments

Comments

@quinzico
Copy link

Hi,

I have some sonoff with 2.6.1 version and tried to install the component to control my sonoffs.

I'm running hassbian with HA 0.100.3

The sonoff to be tested works only on lan mode from the ewelink app.

I've inserted the files on raspberry (configuration.yaml is on /home/homeassistant/.homeassistant/)
$ ls -l /home/homeassistant/.homeassistant/custom_components/sonoff_lan_mode/
total 16
-rw-r--r-- 1 homeassistant homeassistant 285 Oct 26 17:02 manifest.json
drwxr-xr-x 2 homeassistant homeassistant 4096 Oct 26 17:19 pycache
-rw-r--r-- 1 homeassistant homeassistant 4452 Oct 26 17:03 switch.py

Inserted on configuration.yaml file the following:

switch:

  • platform: sonoff_lan_mode
    name: Frigorifico
    host: 192.168.1.23
    icon: mdi:lightbulb

On HA appears a switch but it shows always on unavailable state.

I've checked the logs and shows:

2019-10-28 18:46:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff_lan_mode which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-10-28 18:46:26 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
2019-10-28 18:46:26 WARNING (MainThread) [homeassistant.components.switch] Setup of platform sonoff_lan_mode is taking over 10 seconds.
2019-10-28 18:46:26 WARNING (MainThread) [homeassistant.components.weather] Setup of platform met is taking over 10 seconds.
2019-10-28 18:46:26 WARNING (MainThread) [homeassistant.setup] Setup of onboarding is taking over 10 seconds.
2019-10-28 18:46:27 WARNING (MainThread) [homeassistant.components.switch.sonoff_lan_mode] OSError in setup_connection(): [Errno 104] Connect call failed ('192.168.1.23', 8081)
2019-10-28 18:46:28 WARNING (MainThread) [homeassistant.components.switch.sonoff_lan_mode] OSError in setup_connection(): [Errno 104] Connect call failed ('192.168.1.23', 8081)
2019-10-28 18:46:29 WARNING (MainThread) [homeassistant.components.switch.sonoff_lan_mode] OSError in setup_connection(): [Errno 104] Connect call failed ('192.168.1.23', 8081)
2019-10-28 18:46:36 ERROR (MainThread) [homeassistant.components.switch.sonoff_lan_mode] SonoffLANModeClient connection failed: did not receive a valid HTTP response
2019-10-28 18:46:36 WARNING (MainThread) [homeassistant.components.switch.sonoff_lan_mode] Unable to connect: did not receive a valid HTTP response
2019-10-28 18:46:41 ERROR (MainThread) [homeassistant.components.switch.sonoff_lan_mode] SonoffLANModeClient connection failed: did not receive a valid HTTP response
2019-10-28 18:46:41 WARNING (MainThread) [homeassistant.components.switch.sonoff_lan_mode] Unable to connect: did not receive a valid HTTP response
2019-10-28 18:46:52 ERROR (MainThread) [homeassistant.components.switch.sonoff_lan_mode] SonoffLANModeClient connection failed: did not receive a valid HTTP response
2019-10-28 18:46:52 WARNING (MainThread) [homeassistant.components.switch.sonoff_lan_mode] Unable to connect: did not receive a valid HTTP response

Can you help me?

@mattsaxon
Copy link
Collaborator

mattsaxon commented Oct 28, 2019 via email

@quinzico
Copy link
Author

quinzico commented Oct 28, 2019 via email

@mattsaxon
Copy link
Collaborator

mattsaxon commented Oct 28, 2019 via email

@quinzico
Copy link
Author

quinzico commented Oct 28, 2019 via email

@mattsaxon
Copy link
Collaborator

mattsaxon commented Oct 28, 2019 via email

@quinzico
Copy link
Author

quinzico commented Oct 28, 2019 via email

@mattsaxon
Copy link
Collaborator

I suspect a web socket library version issue. If I recall this library works with version 7.0

@quinzico
Copy link
Author

quinzico commented Jan 25, 2020 via email

@mattsaxon
Copy link
Collaborator

So still no v3 firmware for these devices then?

@quinzico
Copy link
Author

quinzico commented Jan 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants