Skip to content

Version 6.1.0 BETA - new uasyncio v3.0 support

Pre-release
Pre-release
Compare
Choose a tag to compare
@kevinkk525 kevinkk525 released this 09 Apr 13:13

This is the first release that supports the new uasyncio v3.0 that got merged into micropython recently (you need a daily build of micropython to use it).
It is only tested on the esp32 yet, so only .mpy files for the usage on esp32 are available.

Notable other changes:

  • [ADC] supports read_u16(), supports calibration values (U=adc/resolution*calibration_v_max+calibration_offset). This also allows the usage of ATTEN on ESP32 as well as custom adc->voltage conversion e.g. when using a voltage divider.
  • [HCSR04] update to work more reliable, bugfixes, support setting reading iterations and use average of readings
  • [ECMeter] first working version, support setting reading iterations and use average of readings
  • [DS18] catch onewire error, set value to None on error so other components don't rely on an old sensor reading
  • [SENSORS] Extended API to pass **kwargs to base class, so base class constructor can be extended without needing to modify every component constructor
  • [SENSORS] improved error logging in loop to include stacktrace, fixed inconsitency with docs: timestamp only set after successful sensor reading (not None), allow setting a unique name for a sensor instead of always generating the name, support home-assistant sensor option "expire_after" for all sensor using the standard discovery type
  • [COMPONENTS] only list constructor kwargs that are used by the current subclass, everything else is covered by "**kwargs"
  • [CONFIG] Configuration of components now relies on kwargs. Providing args trough a config dictionary (e.g. remote configuration) is not supported anymore (but was never advised anyway).
  • [MQTT] timeout implementation split into different module, concurrent operations with timeouts now possible