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

Version 1.1.0 - OTA Safe mode and a bunch of refactoring

Compare
Choose a tag to compare
@OttoWinter OttoWinter released this 23 Mar 21:07
· 543 commits to master since this release
3d4532f

Another big release of esphomelib - this time with lots of refactoring (to get ready for an upcoming awesome feature, stay tuned) and bug fixing.

  • Added a guide for creating custom sensors: Creating Custom Sensor Components
  • Refactored GPIO Pins (#15) - All components now support inverted pins and pinMode() effortlessly
  • OTA Safe Mode (#18) - erroneously in previous release notes
  • esphomelib now stores the Application instance globally for you → less boilerplate code.
  • Ultrasonic sensor support, like HC-SR04 (#16)

Introducing OTA Safe Mode

Have you ever had it happen that you accidentally uploaded a faulty OTA update to your ESP device and accidentally broke the runtime so you had to get out the old USB cable? Well, with OTA Safe mode by esphomelib no more!

If you include change your init_log() line to the following:

App.init_ota()->start_safe_mode();

your ESP board will automatically detect boot loops and go into OTA update mode without running any of the Application mode for 2 minutes. So in those phases you can still upload your code via OTA and never have to use USB cables anymore 🎉🎉🎉

Other changes:

  • MQTT Sensor Filter pipeline changes (#17)
  • Cleaned up polling components (#20)
  • Callback Manager - Simpler callback managing (#21)