-
Notifications
You must be signed in to change notification settings - Fork 36
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
Comments
How do you know the IP address is accurate?
Have you made a static assignment and blocked the switch from contacting the itead cloud in your router?
…Sent from my iPhone
On 28 Oct 2019, at 18:48, quinzico <[email protected]> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q>.
|
Hi Matt,
Thanks for replying.
I have it statically assigned. As you can see on the pictures below the IP
has the correct sonoff MAC address. So it’s the correct IP.
Besides this, ive blocked all outside comunication to this IP
mattsaxon <[email protected]> escreveu em seg, 28/10/2019 às 19:06 :
How do you know the IP address is accurate?
Have you made a static assignment and blocked the switch from contacting
the itead cloud in your router?
Sent from my iPhone
On 28 Oct 2019, at 18:48, quinzico ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
#74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUF3OL2KMVW46B5WYM3QQ4Z2DA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOBLFQ#issuecomment-547100054>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUGOI2OJAZVBX67EKCDQQ4Z2DANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
|
Thanks. I’m not clear why this is not working then. You’ve followed the correct procedure.
Sorry but I doubt I can help further as all my devices are on v3 firmware which uses a different protocol.
Have you considered updating the firmware and using the latest code in my repository fork?
Sent from my iPhone
On 28 Oct 2019, at 20:12, quinzico <[email protected]> wrote:
Hi Matt,
Thanks for replying.
I have it statically assigned. As you can see on the pictures below the IP
has the correct sonoff MAC address. So it’s the correct IP.
Besides this, ive blocked all outside comunication to this IP
mattsaxon <[email protected]> escreveu em seg, 28/10/2019 às 19:06 :
How do you know the IP address is accurate?
Have you made a static assignment and blocked the switch from contacting
the itead cloud in your router?
Sent from my iPhone
On 28 Oct 2019, at 18:48, quinzico ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
#74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUF3OL2KMVW46B5WYM3QQ4Z2DA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOBLFQ#issuecomment-547100054>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUGOI2OJAZVBX67EKCDQQ4Z2DANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#74?email_source=notifications&email_token=ACWTIV6GOPMNFJH2Z7VEZODQQ5BRRA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOHM3A#issuecomment-547124844>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWTIV33OSD5ZPSKS35VTADQQ5BRRANCNFSM4JF6OW2Q>.
|
Hi Matt,
All my sonoff pow are on 2.6.1 and there is no update available. Only my
sonoff basic are on 3.x.x
That’s why I wanted to checkout the procedure with 2.6.1 to try to have
both procedures working at the same time on a next phase.
mattsaxon <[email protected]> escreveu em seg, 28/10/2019 às 20:51 :
Thanks. I’m not clear why this is not working then. You’ve followed the
correct procedure.
Sorry but I doubt I can help further as all my devices are on v3 firmware
which uses a different protocol.
Have you considered updating the firmware and using the latest code in my
repository fork?
Sent from my iPhone
On 28 Oct 2019, at 20:12, quinzico ***@***.***> wrote:
Hi Matt,
Thanks for replying.
I have it statically assigned. As you can see on the pictures below the IP
has the correct sonoff MAC address. So it’s the correct IP.
Besides this, ive blocked all outside comunication to this IP
mattsaxon ***@***.***> escreveu em seg, 28/10/2019 às 19:06
:
> How do you know the IP address is accurate?
>
> Have you made a static assignment and blocked the switch from contacting
> the itead cloud in your router?
>
> Sent from my iPhone
>
> On 28 Oct 2019, at 18:48, quinzico ***@***.***> wrote:
>
>
>
> 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?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub<
>
#74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ>,
> or unsubscribe<
>
https://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q>.
>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#74?email_source=notifications&email_token=ANTVDUF3OL2KMVW46B5WYM3QQ4Z2DA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOBLFQ#issuecomment-547100054>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ANTVDUGOI2OJAZVBX67EKCDQQ4Z2DANCNFSM4JF6OW2Q>
> .
>
--
Com os meus cumprimentos,
Hélder Quinzico
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<
#74?email_source=notifications&email_token=ACWTIV6GOPMNFJH2Z7VEZODQQ5BRRA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOHM3A#issuecomment-547124844>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ACWTIV33OSD5ZPSKS35VTADQQ5BRRANCNFSM4JF6OW2Q>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUF6ARWJKJORBLSCMJDQQ5GD3A5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOLFGA#issuecomment-547140248>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUAEIEAC3BTQIJFKQCDQQ5GD3ANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
|
Understood.
Are you using the v3 code in side by side mode for you basics?
Next step would be to turn on debit logging so we can see what is occurring. The debug log will have the message in it so I can perhaps visually see what is wrong with it.
There will be lots of data so please Pete just the relevant parts as I’m on a phone at the moment
Sent from my iPhone
On 28 Oct 2019, at 20:55, quinzico <[email protected]> wrote:
Hi Matt,
All my sonoff pow are on 2.6.1 and there is no update available. Only my
sonoff basic are on 3.x.x
That’s why I wanted to checkout the procedure with 2.6.1 to try to have
both procedures working at the same time on a next phase.
mattsaxon <[email protected]> escreveu em seg, 28/10/2019 às 20:51 :
Thanks. I’m not clear why this is not working then. You’ve followed the
correct procedure.
Sorry but I doubt I can help further as all my devices are on v3 firmware
which uses a different protocol.
Have you considered updating the firmware and using the latest code in my
repository fork?
Sent from my iPhone
On 28 Oct 2019, at 20:12, quinzico ***@***.***> wrote:
Hi Matt,
Thanks for replying.
I have it statically assigned. As you can see on the pictures below the IP
has the correct sonoff MAC address. So it’s the correct IP.
Besides this, ive blocked all outside comunication to this IP
mattsaxon ***@***.***> escreveu em seg, 28/10/2019 às 19:06
:
> How do you know the IP address is accurate?
>
> Have you made a static assignment and blocked the switch from contacting
> the itead cloud in your router?
>
> Sent from my iPhone
>
> On 28 Oct 2019, at 18:48, quinzico ***@***.***> wrote:
>
>
>
> 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?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub<
>
#74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ>,
> or unsubscribe<
>
https://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q>.
>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#74?email_source=notifications&email_token=ANTVDUF3OL2KMVW46B5WYM3QQ4Z2DA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOBLFQ#issuecomment-547100054>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ANTVDUGOI2OJAZVBX67EKCDQQ4Z2DANCNFSM4JF6OW2Q>
> .
>
--
Com os meus cumprimentos,
Hélder Quinzico
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<
#74?email_source=notifications&email_token=ACWTIV6GOPMNFJH2Z7VEZODQQ5BRRA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOHM3A#issuecomment-547124844>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ACWTIV33OSD5ZPSKS35VTADQQ5BRRANCNFSM4JF6OW2Q>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUF6ARWJKJORBLSCMJDQQ5GD3A5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOLFGA#issuecomment-547140248>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUAEIEAC3BTQIJFKQCDQQ5GD3ANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#74?email_source=notifications&email_token=ACWTIV5IFSXO24TXNW65O2LQQ5GVZA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOLTTA#issuecomment-547142092>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWTIVZBFL6AAMMLF5PG43DQQ5GVZANCNFSM4JF6OW2Q>.
|
Hi Matt,
On the logs I have something strange:
Log Details (ERROR)
Mon Oct 28 2019 22:25:49 GMT+0000 (WET)
Error doing job: Exception in callback WebSocketResponse._send_heartbeat()
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_ws.py",
line 102, in _send_heartbeat
self._loop.create_task(self._writer.ping()) # type: ignore
AttributeError: 'NoneType' object has no attribute 'ping'
Is this helpful?
mattsaxon <[email protected]> escreveu em seg, 28/10/2019 às 21:24 :
Understood.
Are you using the v3 code in side by side mode for you basics?
Next step would be to turn on debit logging so we can see what is
occurring. The debug log will have the message in it so I can perhaps
visually see what is wrong with it.
There will be lots of data so please Pete just the relevant parts as I’m
on a phone at the moment
Sent from my iPhone
On 28 Oct 2019, at 20:55, quinzico ***@***.***> wrote:
Hi Matt,
All my sonoff pow are on 2.6.1 and there is no update available. Only my
sonoff basic are on 3.x.x
That’s why I wanted to checkout the procedure with 2.6.1 to try to have
both procedures working at the same time on a next phase.
mattsaxon ***@***.***> escreveu em seg, 28/10/2019 às 20:51
:
> Thanks. I’m not clear why this is not working then. You’ve followed the
> correct procedure.
>
> Sorry but I doubt I can help further as all my devices are on v3
firmware
> which uses a different protocol.
>
> Have you considered updating the firmware and using the latest code in
my
> repository fork?
>
>
> Sent from my iPhone
>
> On 28 Oct 2019, at 20:12, quinzico ***@***.***> wrote:
>
> Hi Matt,
>
> Thanks for replying.
>
> I have it statically assigned. As you can see on the pictures below the
IP
> has the correct sonoff MAC address. So it’s the correct IP.
>
>
>
> Besides this, ive blocked all outside comunication to this IP
>
>
>
> mattsaxon ***@***.***> escreveu em seg, 28/10/2019 às
19:06
> :
>
> > How do you know the IP address is accurate?
> >
> > Have you made a static assignment and blocked the switch from
contacting
> > the itead cloud in your router?
> >
> > Sent from my iPhone
> >
> > On 28 Oct 2019, at 18:48, quinzico ***@***.***> wrote:
> >
> >
> >
> > 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?
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub<
> >
>
#74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ>,
>
> > or unsubscribe<
> >
>
https://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q>.
>
> >
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <
>
#74?email_source=notifications&email_token=ANTVDUF3OL2KMVW46B5WYM3QQ4Z2DA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOBLFQ#issuecomment-547100054>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ANTVDUGOI2OJAZVBX67EKCDQQ4Z2DANCNFSM4JF6OW2Q>
>
> > .
> >
> --
> Com os meus cumprimentos,
>
> Hélder Quinzico
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub<
>
#74?email_source=notifications&email_token=ACWTIV6GOPMNFJH2Z7VEZODQQ5BRRA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOHM3A#issuecomment-547124844>,
> or unsubscribe<
>
https://github.com/notifications/unsubscribe-auth/ACWTIV33OSD5ZPSKS35VTADQQ5BRRANCNFSM4JF6OW2Q>.
>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#74?email_source=notifications&email_token=ANTVDUF6ARWJKJORBLSCMJDQQ5GD3A5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOLFGA#issuecomment-547140248>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ANTVDUAEIEAC3BTQIJFKQCDQQ5GD3ANCNFSM4JF6OW2Q>
> .
>
--
Com os meus cumprimentos,
Hélder Quinzico
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<
#74?email_source=notifications&email_token=ACWTIV5IFSXO24TXNW65O2LQQ5GVZA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOLTTA#issuecomment-547142092>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ACWTIVZBFL6AAMMLF5PG43DQQ5GVZANCNFSM4JF6OW2Q>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUGLVNW3B4QPTNN5SM3QQ5KCNA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOOGFI#issuecomment-547152661>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUFZWOEH266KVGOWJ2LQQ5KCNANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
|
I suspect a web socket library version issue. If I recall this library works with version 7.0 |
I think I tried with 7.0, but I’ll re-check it.
Thanks Matt
mattsaxon <[email protected]> escreveu em sáb, 25/01/2020 às 12:42 :
I suspect a web socket library version issue. If I recall this library
works with version 7.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUHTHPE433ZNYPL7TTDQ7QXUNA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ43XOI#issuecomment-578403257>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUBJ4L4B7JG3KQVBMHDQ7QXUNANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
|
So still no v3 firmware for these devices then? |
Yes, still no v3 fw
mattsaxon <[email protected]> escreveu em sáb, 25/01/2020 às 12:55 :
So still no v3 firmware for these devices then?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=ANTVDUBJRBSXEJMHLWGP2HDQ7QZCHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ435OI#issuecomment-578404025>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTVDUCZZU4IBQQQXUBUESDQ7QZCHANCNFSM4JF6OW2Q>
.
--
Com os meus cumprimentos,
Hélder Quinzico
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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?
The text was updated successfully, but these errors were encountered: