Skip to content

1.0.2

Compare
Choose a tag to compare
@leon-anavi leon-anavi released this 10 May 15:22

Release 1.0.2 of the open source firmware for ANAVI Thermometer contains major improvements by @cederlys:

  • Adds one status topic for the esp8266 and for each connected sensor. Each status can be "online" or "offline".
  • Set up MQTT wills so that the status topics are automatically set to "offline" if the connection is lost.
  • Add an "availability_topic" setting to the Home Assistant MQTT. Discovery messages, so that Home Assistant can detect when the sensor readings are unavailable.
  • Add hotplug support for the DS18B20 sensor.
  • Stop sending MQTT Discovery messages every now and then. They are now only sent when the connection is established. The only exceptions are the bmp180-altitude and bmp180-slp sensors. Since they are only published when the sea-level pressure and altitude are configured via MQTT messages, they are still sent from the publishState() function.

It is only possible to set up one MQTT will per MQTT connection, so commit 4b83874 actually implements 3 different strategies, that can be selected at compile time:

  • 1+1: One MQTT connection, a single availability topic
  • 1+N: One MQTT connection, N availability topics
  • N+N: N MQTT connections, N availability topics

The default strategy is 1+N. It requires an external automation to work well, but uses less resources than N+N. The mode is selected at compile-time by defining or undefining USE_MULTIPLE_MQTT and USE_MULTIPLE_STATUS_TOPICS. (See in-code comments for details and a discussion of the drawbacks of each strategy.)

Furthermore the release also includes:

  • A smaller font to ensure the SSID and IP address fits again by @cederlys
  • Improved text format by @albertpauw

@cederlys, @albertpauw thank you for your contributions!