Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Web Server, Deep Sleep and WiFi AP mode

Compare
Choose a tag to compare
@OttoWinter OttoWinter released this 18 Apr 17:23
· 500 commits to master since this release
90c746f

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.

screen shot 2018-04-18 at 17 20 13

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.