beveradb / sonoff-lan-mode-homeassistant

Home Assistant platform to control Sonoff switches running the latest Itead firmware, locally (LAN mode).
MIT License
74 stars 36 forks source link

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

Open quinzico opened 4 years ago

quinzico commented 4 years ago

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:

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 commented 4 years ago

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 notifications@github.com 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:

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 GitHubhttps://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/74?email_source=notifications&email_token=ACWTIV2MN7KAIRO7F5YVWPLQQ4XZHA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3ICOQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACWTIV47UICED62UN3QKFS3QQ4XZHANCNFSM4JF6OW2Q.

quinzico commented 4 years ago

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 notifications@github.com 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 notifications@github.com 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< https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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

mattsaxon commented 4 years ago

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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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< https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 GitHubhttps://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/74?email_source=notifications&email_token=ACWTIV6GOPMNFJH2Z7VEZODQQ5BRRA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOHM3A#issuecomment-547124844, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACWTIV33OSD5ZPSKS35VTADQQ5BRRANCNFSM4JF6OW2Q.

quinzico commented 4 years ago

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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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<

https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 < https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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< https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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

mattsaxon commented 4 years ago

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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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<

https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 < https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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< https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 GitHubhttps://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/74?email_source=notifications&email_token=ACWTIV5IFSXO24TXNW65O2LQQ5GVZA5CNFSM4JF6OW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECOLTTA#issuecomment-547142092, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACWTIVZBFL6AAMMLF5PG43DQQ5GVZANCNFSM4JF6OW2Q.

quinzico commented 4 years ago

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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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 notifications@github.com 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<

https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 <

https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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<

https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 < https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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< https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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

mattsaxon commented 4 years ago

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

quinzico commented 4 years ago

I think I tried with 7.0, but I’ll re-check it.

Thanks Matt

mattsaxon notifications@github.com 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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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

mattsaxon commented 4 years ago

So still no v3 firmware for these devices then?

quinzico commented 4 years ago

Yes, still no v3 fw

mattsaxon notifications@github.com 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 https://github.com/beveradb/sonoff-lan-mode-homeassistant/issues/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