SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

SonoffLAN unavailable after some time since last update

Open kimme1024 opened this issue 2 years ago • 41 comments

Since updating to 2023.2, all my devices connected via the SonoffLAN integration become unavailable after some time. When I reload the integration they become available immediately. It happens both in local and auto-mode.

kimme1024 avatar Feb 23 '23 16:02 kimme1024

Since updating to 2023.2, all my devices connected via the SonoffLAN integration become unavailable after some time. When I reload the integration they become available immediately. It happens both in local and auto-mode.

Same here!

gimli1967 avatar Feb 23 '23 19:02 gimli1967

Same for me. 2023.2.5. Addon reload solving problem for some time.

papka1974 avatar Feb 23 '23 19:02 papka1974

Same for me. 2023.2.5. Addon reload solving problem for some time.

yes, true but after a while they become unavailable again

gimli1967 avatar Feb 23 '23 19:02 gimli1967

Same issue for me after I installed the latest update - I have 2 sonoff devices - one switch that seems fine and one temperature and humidity sensor that just drops to unavailable. Reloading the integration brings it back online. No entries in the system log so I have enabled the debug page to see if it shows anything useful.

snigehere avatar Feb 23 '23 21:02 snigehere

Seems devices picked randomly. Have 6 switches. Random count of them could go offline.

papka1974 avatar Feb 24 '23 04:02 papka1974

Maybe related to this issue report.

Tamsy avatar Feb 24 '23 11:02 Tamsy

There are multiple tickets that describe the same issue https://github.com/AlexxIT/SonoffLAN/issues/1120 https://github.com/AlexxIT/SonoffLAN/issues/1117 https://github.com/AlexxIT/SonoffLAN/issues/1112 https://github.com/AlexxIT/SonoffLAN/issues/1110

This one has a suggestion on a solution https://github.com/AlexxIT/SonoffLAN/issues/1112

snigehere avatar Feb 24 '23 12:02 snigehere

Same here. Home Assistant 2023.2.5 Supervisor 2023.01.1 Operating System 9.5 Sonoff LAN v3.4.0

image

RubenFelix avatar Feb 24 '23 15:02 RubenFelix

experiencing exact same issue. for now it seems that this can be solved by reverting to previous HA release via terminal (ha core update --version 2023.2.3)

scg001 avatar Feb 26 '23 21:02 scg001

experiencing exact same issue. for now it seems that this can be solved by reverting to previous HA release via terminal (ha core update --version 2023.2.3)

Or reverting to sonoff lan 3.3.0 works as well…

kimme1024 avatar Feb 26 '23 22:02 kimme1024

That makes more sense. Thanks

scg001 avatar Feb 26 '23 23:02 scg001

I'm holding off on rolling back just yet - hopefully this issues will be fixed shortly. If not then I'll roll back the sonofflan to 3.3.0

Yonny24 avatar Mar 01 '23 17:03 Yonny24

experiencing exact same issue. for now it seems that this can be solved by reverting to previous HA release via terminal (ha core update --version 2023.2.3)

Or reverting to sonoff lan 3.3.0 works as well…

How do you rollback the hacs integration? Thanks

Yonny24 avatar Mar 01 '23 17:03 Yonny24

I tried to switch configuration to "auto" from "local". My switches stopped to became unavailable, but appeared another problem. One of switches lost it's real status within HA. Like it was switched on, but in HA showed as switched off. So I moved back to "local" and checked "default home". Will look how it will works.

papka1974 avatar Mar 01 '23 17:03 papka1974

experiencing exact same issue. for now it seems that this can be solved by reverting to previous HA release via terminal (ha core update --version 2023.2.3)

Or reverting to sonoff lan 3.3.0 works as well…

How do you rollback the hacs integration? Thanks

Find the integration in hacs, reinstall, choose older version. Don’t know it by heart but it’s something like that.

kimme1024 avatar Mar 01 '23 19:03 kimme1024

experiencing exact same issue. for now it seems that this can be solved by reverting to previous HA release via terminal (ha core update --version 2023.2.3)

Or reverting to sonoff lan 3.3.0 works as well…

How do you rollback the hacs integration? Thanks

Find the integration in hacs, reinstall, choose older version. Don’t know it by heart but it’s something like that.

Thanks - It didn't screw up your current entities like adding duplicates with a postfix of '_1' or anything?

Yonny24 avatar Mar 01 '23 19:03 Yonny24

experiencing exact same issue. for now it seems that this can be solved by reverting to previous HA release via terminal (ha core update --version 2023.2.3)

Or reverting to sonoff lan 3.3.0 works as well…

How do you rollback the hacs integration? Thanks

Find the integration in hacs, reinstall, choose older version. Don’t know it by heart but it’s something like that.

Thanks - It didn't screw up your current entities like adding duplicates with a postfix of '_1' or anything?

No didn’t change anything besides solving the issue. Obviously it can be different in your usecase.

kimme1024 avatar Mar 01 '23 23:03 kimme1024

Went back to 3.3. It's easy and everything stayed intact. Just do redownload and choose another version. Then reboot. Let's see how it works now. Configured as local and "default home" unchecked.

papka1974 avatar Mar 02 '23 20:03 papka1974

Went back to 3.3. It's easy and everything stayed intact. Just do redownload and choose another version. Then reboot. Let's see how it works now. Configured as local and "default home" unchecked.

I'm unnable to redownload or reinstall it! Could you give me step by step tutorial? I'm making anything wrong but cannot understand what! Thanks

nsacras avatar Mar 05 '23 09:03 nsacras

Went back to 3.3. It's easy and everything stayed intact. Just do redownload and choose another version. Then reboot. Let's see how it works now. Configured as local and "default home" unchecked.

I'm unnable to redownload or reinstall it! Could you give me step by step tutorial? I'm making anything wrong but cannot understand what! Thanks

Go to HACS, find Sonoff integration, open it, 3 dots on top, select redownload. You'll be able select required version. Screenshot_20230305-120632

papka1974 avatar Mar 05 '23 10:03 papka1974

Perfect and I'm totally greatful. It works.

nsacras avatar Mar 05 '23 16:03 nsacras

Went back to 3.3. It's easy and everything stayed intact. Just do redownload and choose another version. Then reboot. Let's see how it works now. Configured as local and "default home" unchecked.

I'm unnable to redownload or reinstall it! Could you give me step by step tutorial? I'm making anything wrong but cannot understand what! Thanks

Go to HACS, find Sonoff integration, open it, 3 dots on top, select redownload. You'll be able select required version. Screenshot_20230305-120632

thank you! downgraded now

Yonny24 avatar Mar 06 '23 13:03 Yonny24

how do you know what version is installed? i've "redownloaded" 3.3.0 and other older versions a bunch of times now but the problem still happens sporadically. i can't seem to tell what version is "currently installed" it shouldn't be auto updating, but i fear it might be?! (or not downgrading properly)

thefunkygibbon avatar Mar 21 '23 13:03 thefunkygibbon

same problem here, I'm on 3.3 since 2 weeks...

gabriele-latino avatar Mar 24 '23 07:03 gabriele-latino

hey all, a great workaround since this issue doesn't appear to be being worked on, is to create an automation to monitor a sonoff device and restart the service automatically. its not a perfect solution but hopefully it should make the devices work for "most" of the time. https://github.com/AlexxIT/SonoffLAN/issues/1138#issuecomment-1478580171

thefunkygibbon avatar Mar 27 '23 09:03 thefunkygibbon

Well. A lot of posts and no useful information at all. No one, absolutely no one has attached any diagnostics or logs.

AlexxIT avatar Mar 30 '23 10:03 AlexxIT

Not at all correct --- I included logs and debug in my issue https://github.com/AlexxIT/SonoffLAN/issues/1126 and you just said don't use local and closed the issue. Local is a valid option - if it is not working then why is it offered?

snigehere avatar Mar 30 '23 10:03 snigehere

  1. I said that I have improved processing LAN problems in the new release
  2. The documentation for the integration has always recommended to use auto mode
  3. Local mode exists because some users are afraid of clouds

I hold to the idea that each user can decide for himself what he needs. If he wants NOT to use the recommendations, that's his choice.

AlexxIT avatar Mar 30 '23 10:03 AlexxIT

  1. I said that I have improved processing LAN problems in the new release
  2. The documentation for the integration has always recommended to use auto mode
  3. Local mode exists because some users are afraid of clouds

I hold to the idea that each user can decide for himself what he needs. If he wants NOT to use the recommendations, that's his choice.

Problem appeared whenever of mode. I changed from local to auto and problem appeared again. Only fix was to step 1 version back. Still on older version and no problem in any mode.

papka1974 avatar Mar 30 '23 11:03 papka1974

Problem with mode local was for @snigehere. Because he attached some debug info to his issue. What is the problem of this issue no one knows https://github.com/AlexxIT/SonoffLAN#issues

AlexxIT avatar Mar 30 '23 11:03 AlexxIT