Giter Club home page Giter Club logo

Comments (5)

OttoWinter avatar OttoWinter commented on July 20, 2024

Yes, this is certainly of the things esphomelib currently doesn't handle very well. There are, however, two problems which stop esphomelib from being a bit better about handling this:

  • For some reason, the ESPs sometimes like to just disconnect from WiFi and never re-connect again until a software restart happens. This is why the node restarts after a while if no connection is detected.
  • What should the device do when it has no MQTT/WiFi connection? I mean it can't push out any sensor values and cannot respond to any commands anyway, so the question is what should it do then.

The WiFi redundancy is already kind of possible with the WiFi AP+STA Feature. Basically, when the WiFi connection to an external AP is dropped, esphomelib will automatically create an AP after a while.

The first few scenarios could be "fixed" by a Multi Wifi architecture as described here. It's going to be a bit difficult to implement, but is a future goal.

from esphome-core.

pluskal avatar pluskal commented on July 20, 2024

Good points, I would say that Multi Wifi would be sufficient. If it can be triggered by common issues in connectivity.

From my point of view, liveness of IoT devices should be monitored by a 3rd component that raises alert when the dead component is detected. So as long as the esphome device keeps connecting and reconnecting to multiple wifi APs after the issue on a network is solved, the infrastructure ends in working state.

from esphome-core.

Evanlec avatar Evanlec commented on July 20, 2024

I would also very much like to see the ability to connect to multiple wifi networks (i.e. try to connect to any of say 5 pre-configured network names / credentials), that would be very handy for portable devices.

from esphome-core.

tgdavies avatar tgdavies commented on July 20, 2024

I would like this too. In my use case I develop attached to one network, then when the device is in-situ it uses a different one -- I could jumper a GPIO and choose the connection, but it would be better if I could just ask it to try both.

from esphome-core.

OttoWinter avatar OttoWinter commented on July 20, 2024

Gonna close this. Automations can be written on the device now and WiFi has multiple networks to connect to etc.

from esphome-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.