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

Scheduled restart? #803

Closed
oskarirauta opened this issue Apr 20, 2018 · 11 comments
Closed

Scheduled restart? #803

oskarirauta opened this issue Apr 20, 2018 · 11 comments
Labels
enhancement New feature or request scheduler wifi
Milestone

Comments

@oskarirauta
Copy link

I STILL have connectivity issues - every week, multiple devices loose connection to access points and they never re-connect.

One of these devices (POW) is in proximity of 3 meters from access point. And it seems - that more you use the device (switch on and off) - more often this happens. This POW I mentioned is used to control power outlet which is used by my spouse to pre-heat her car, and because it's still cold, this is every day. I have scheduled it, but this schedule is elsewhere, it's done with home assistant, because I have created a script, that turns pre-heating off always after it has been on for 3 hours, even when started manually with the button.

When device has lost this connection, I can connect to AP created by device itself, and press either re-connect, or reboot and then it's possibly usable again. Most of the times, reconnecting only renders device to not connect to Wifi, and to not make AP either (in this case, I need pull the fuse to manually restart it).

Anyway, as this seems to be very difficult to debug or replicate according to previous conversations ( at the old site ) - I have come to think about a work around solution for this.

Now when there's scheduling-
Could we get some more options? Instead of controlling relay, I'd like to control the device itself, and here are my ideas about missing options that possibly could solve my issue...

  • reboot (forced)
  • reboot if relay(s) is/are off (there might be sensitive device which relay is controlling)
  • re-connect

And we have discussed about this issue before- there's some sort of automatic functionality that re-connects to chosen AP after loss of connection/error/etc... I have been trying to find that part of code to see if I could do something about it (probably not, you seem pretty capable), but could you give me some pointers to the code, where are located following parts:

  • automatic wifi reconnection
  • test for reboot necessity (stability testing)

Thanks :) Still, even though I have these issues; great work, this is most certainly the best firmware available :)

I have included a screenshot of available wifi AP's after 5 days ( I drive a truck, so I am not at home at the week, and idea is that I have control over my devices through VPN from distance )
As you see, most devices are once again in the state of self-AP.

screen shot 2018-04-20 at 22 20 04

@oskarirauta
Copy link
Author

For some reason, one of the devices decided to use it's hostname as AP name, instead of ESP_*
(bedroom-switch)

Is this related to the issue? Devices are all Sonoff's:

  • sonoff basic
  • sonoff pow
  • sonoff touch
  • sonoff T1 EU 2 gang
  • sonoff s20

And after every week mileage varies, most times, atleast 2 devices have lost their connection.

@xoseperez
Copy link
Owner

It's a good idea but it's also very bad news you are having all these troubles with all (?) of your devices. There must be something going on. One question: if I understood you correctly, you can still connect to the device's own AP, right? Have you noticed if it was running in safe mode? What was the uptime of the device?

@xoseperez xoseperez added enhancement New feature or request wifi scheduler labels Apr 23, 2018
@oskarirauta
Copy link
Author

oskarirauta commented Apr 23, 2018 via email

@oskarirauta
Copy link
Author

oskarirauta commented Apr 23, 2018 via email

@icevoodoo
Copy link

If the problem regarding connectivity persist, a schedule for reboot is a must.
We need this option in schedule section. From my site of view I vote for this.

+1

@xoseperez xoseperez added this to the 1.13.0 milestone Apr 23, 2018
@law1964
Copy link

law1964 commented May 15, 2018

@oskarirauta Do you still have this connectivity issue? I had a Belkin wemo switch before that would not connect to my wifi network. I changed the wifi mode from 802.1n only to 802.1g/n mixed and it started connecting. I don't know what your wifi router settings are, but if it is restricted to "n" then, perhaps try changing the mode to "g/n" or even "b/g/n" to determine whether it is a compatibility issue. Not all wifi routers are built the same.

@oskarirauta
Copy link
Author

oskarirauta commented May 15, 2018 via email

@xoseperez
Copy link
Owner

@oskarirauta Can you confirm it was due to Core 2.4.0? 2.4.1 works fine for you? What lwIP version you compiled against?

@oskarirauta
Copy link
Author

oskarirauta commented May 15, 2018 via email

@myounges
Copy link

myounges commented Aug 16, 2018

Hello,

My two cents on this topic, I have been experiencing random disconnects from the network of my sonoffs (Basic and Dual), pretty much as mentioned on this post. I opened a post about this back in the day and we tried different test but the problem was still there.

I use my sonoffs via MQTT with node-red, usually these sonosffs stopped being visible for the mqtt broker, if you try to logon to it "sometimes" it would be reachable, and the the fix was easy restart the mqtt service to force the sonoff to be visible again, in the case it is not reachable (not even to ping), restarting the router seemed to sort the problem. For some reason there are some sonoffs in my house that happen to hang more often than others i assume this would be related to the wifi coverage, but just guessing.

After reading this post I updated a few of the sonoffs I had to core version 2.4.1 from 2.3.0 with espurna 1.13.1 as @oskarirauta mentioned earlier. will be happy to provide more input. So far these changes have been running for two days with no issues which is already promising as I never went through two full days without an issue.

If there is something you would like me to test just let me know.

Thanks @oskarirauta for the tip!

@mcspr
Copy link
Collaborator

mcspr commented Aug 22, 2024

Closing via #2417, impl. changed to use terminal commands

@mcspr mcspr closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scheduler wifi
Projects
None yet
Development

No branches or pull requests

6 participants