Web Server, Deep Sleep and WiFi AP mode
Yet another version of esphomelib 🎉. This time with an awesome new feature: An integrated web server! If you have App.init_web_server();
(docs) in your application, you will now be able to use a small web server with an easy to use REST API and a nice front end.
Beware that this uses a lot of memory and sometimes doesn't work too well with ESP8266s.
This release also includes some major refactors of the base components, now you need to call App.register_sensor()
instead of App.make_mqtt_sensor_for()
to register a sensor, and the same for other components too.
Next, you'll now be able to be ultra-efficient about energy usage using the new deep sleep component (App.make_deep_sleep_component();
, docs). Just tell it when to go into deep sleep and how long to stay in that ultra-efficient energy mode and you're good to go.
Now you also have the option to use the ESP8266/ESP32 as an WiFi Access Point or hotspot. If you use set up both station and AP mode, esphomelib will automatically disable the AP if a connection to the wifi router is successful (docs).
Additionally, the MQTT client has been rewritten with the internal TCP buffer in order to fix a whole bunch of bugs. Other changes include lots of WiFi edge case fixes, MQTT SSL support and a Debug Component.