Version 1.2.0 - Lots of changes/features 🎉
Version 1.2.0 is here, and it has lots of awesome new integrations and features. Here are some of highlights:
New I²C sensors
There's lots of new i2c-based sensors supported now:
- BMP085/BMP180 Temperature+Pressure sensors (docs)
- HDC1080 Temperature+Humidity sensors (docs)
- HTU21D Temperature+Humidity sensors (docs, experimental)
- ADS1115 ADCs (docs, experimental)
Some of them are experimental, because I'm still waiting for them to arrive. If you can verify that one of them works, please notify me.
// You need to call this to initialize the i2c bus.
App.init_i2c(21, 22);
App.make_bmp085_sensor("BMP085 Temperature", "BMP085 Pressure");
App.make_htu21d_sensor("HTU21D Temperature", "HTU21D Humidity");
App.make_hdc1080_sensor("HDC1080 Temperature", "HDC1080 Humidity");
auto *ads1115 = App.make_ads1115_component(0x48);
App.make_mqtt_sensor_for(ads1115->get_sensor(ADS1115_MUX_P0_N1, ADS1115_PGA_6P144), "ADS1115 Voltage");
Documentation & Discord Chat
To make this framework even easier to use, there's now a dedicated website for documentation available at http://esphomelib.com. Currently, there's mostly only API documentation over there, but also some usage examples. My plan is to also write up some more guides like How to create a custom sensor over there.
Additionally, there's also a new discord chat available at https://discord.gg/KhAMKrd. Feel free to ask me questions there and ask for new features. I'm looking forward to it 😀
Other changes
- The great OTA safe mode feature has been backported to the ESP8266 using some RTC memory magic 😎 (docs)
- ESP8266 Software PWM support. Now you can create modulated PWM signals using your ESP8266 too (docs):
App.make_esp8266_pwm_output(D2);
- New status binary sensor (docs) and restart switch (docs). These two new platforms allow you to have the connection status of your device be shown in Home Assistant, and allow you to restart the node remotely.
App.make_status_binary_sensor("Küche Status");
App.make_restart_switch("Küche Neustart");
- I've forked all libraries used by esphomelib and made changes so that you as a user no longer to specify
build_flags
in yourplatform.ini
. Yay for usability 🎉 - The memory requirements have been reduced quite a bit using some advanced C++ techniques.
- The Dallas (DS18b20) integration and the 1-Wire protocol have been completely rewritten for esphomelib in order to fix some timing issues. The Dallas temperature sensors now are a lot more stable (docs).
- A bunch of bug fixes. Many thanks to everybody that reported issues!