Skip to content

Releases: hostcc/energomera-hass-mqtt

1.3.1

11 Sep 11:18
d01dd4c
Compare
Choose a tag to compare

What's Changed

  • Fixed (re)connecting to MQTT broker if no active connection exists or one got disconnected by @hostcc in #9

Full Changelog: 1.3.0...1.3.1

1.3.0

28 Aug 12:44
47c9bad
Compare
Choose a tag to compare

What's Changed

Fixed processing online sensor to properly reflect its state

If no MQTT responses are seen from the clients for more than config.general.intercycle_delay the client will be considered disconnected and last will be be sent indicating online state being 'off'. Previously, each cycle of interacting with meter had pair of connect/disconnect MQTT client calls so last will is not activated if the program dies in between invocations.

  • Introduced MqttClient.connect() method that supports multiple calls to it while performing actual connect only once (if underlying MQTT client isn't connected already)
  • Added EnergomeraHassMqtt.finalize() method that is now performs MQTT client disconnect only at the end of processing, when the program is about to exit
  • Set MQTT keepalive to interval between meter interaction cycles (config.general.intercycle_delay), so that MQTT broker will consider the client disconnected upon that internal if no MQTT traffic is seen from the client. Please note the interval could be shorter due to the use of asyncio_mqtt, since its asynchronous task runs in the loop and can respond to MQTT pings anytime in between meter cycles.

tests/test_online_sensor: Tests adjusted to cover normal program run against real MQTT broker

  • The MQTT broker fixture now supports managing users/password via pytest mark mqtt_broker_users (currently unused)
  • Added test_online_sensor_normal_run test that performs normal program run against real MQTT broker and validates proper online sensor states are sent

README.rst updates

  • Added mentions of explicit Docker image variant if it isn't selected properly (seems happening with ARMv6 only)
  • Added documentation for config.mqtt.tls property
  • Added clarification to config.general.intercycle_delay is also used as MQTT keepalive interval

1.2.0

20 Aug 23:59
f048791
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.1.0...1.2.0

1.1.0

02 Jun 14:49
191ac36
Compare
Choose a tag to compare

What's Changed

  • Docker images support. systemd service fixed for permissions by @hostcc in #5

Full Changelog: 1.0.3...1.1.0

1.0.3

01 Jun 14:00
12f7d61
Compare
Choose a tag to compare

What's Changed

  • Fixed interpolated expressions in the configuration across day/month changes by @hostcc in #4

Full Changelog: 1.0.2...1.0.3

1.0.2

30 May 11:13
a98199d
Compare
Choose a tag to compare

What's Changed

  • Fix Too many open files error by @hostcc in #3

Full Changelog: 1.0.1...1.0.2

1.0.1

29 May 20:10
eb1b2c9
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0...1.0.1

1.0.0

29 May 19:31
aea40ca
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @hostcc made their first contribution in #1

Full Changelog: https://github.com/hostcc/energomera-hass-mqtt/commits/1.0.0