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
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 🎉🎉🎉