github joshuar/go-hass-agent v9.0.0

latest releases: v13.3.3, v13.3.2, v13.3.1...
16 months ago

9.0.0 (2024-05-07)

This release contains a number of breaking changes regarding entity naming. Be sure to read the BREAKING CHANGES section below for details. If you have automations or dashboards using disk IO, hardware monitoring or MQTT entities created by Go Hass Agent, please check and adjust as necessary.

In addition to the breaking changes, there is new functionality:

  • For MQTT users, there is a volume slider and mute switch that will control the default audio output device 🎉
  • There are now only disk IO sensors for physical or virtual groups of physical (mdadm, device-mapper) disks. There is also now total disk read/write count/rate sensors 🎉
  • You can stop the agent from writing any log files with the --no-log-file command-line option 🎉

⚠ BREAKING CHANGES

  • linux: This commit changes the disk IO sensors so they are sourced from SysFS. This allows better filtering of devices to avoid creating sensors for partitions and other virtual devices. There should only be sensors created for physical disks, mdadm disks and device-mapper disks. Where possible, an attribute is available containing the model name of the disk. Additionally, a sensor will be created for total read/write counts and rates for all physical disks (excluding mdadm/device-mapper). Some entity IDs may have changed so be sure to check automations and dashboards and adjust as necessary.
  • linux/hwmon: This is another refactoring of the hardware sensor (hwmon) parsing code. This hsould handle duplicate devices and generate unique sensors for all of them. As a result entities in Home Assistant will be renamed (again) which may break any automations and other functionality using the current names.
  • This commit is a major refactoring of the MQTT functionality coinciding with changes to the underlying library that powers it. MQTT entities have been renamed, which will result in some breakage of automations and features in Home Assistant. No functionality has been lost however, and this change will make it easier to add additional controls and features powered by MQTT to Go Hass Agent.

Features

  • agent: ✨ add a --no-log-file command-line option to not write a log file (59f2ce5)
  • linux: ✨ add a volume mute switch (3b8eb54)
  • linux: ✨ add volume level control (cac7077)
  • linux: ✨ don't send swap sensors if there is no swap enabled (f8508e2)
  • linux: improved disk IO sensors (179f94e)
  • preferences: ✨ add a function to return MQTT origin info for use in MQTT code (2ab73bb)

Bug Fixes

  • agent: 🔥 remove testing commands (6bd339d)
  • linux: 🐛 correct string version of disk rate units (85a4164)
  • linux: 🐛 disk reads/writes sensors should not use data size device class (46f47bd)
  • linux: 🐛 don't block sending initial power state sensor update (5e2100a)
  • linux: 🐛 don't block sending user sensor updates (d6a982d)
  • linux: 🐛 ensure disk read/write count sensors have correct units (da4f805)
  • linux: 🐛 fix broken D-Bus control (a49fce1)
  • linux: 🔥 remove spews (debugging) (5e6aeb6)
  • linux: ⚡ ensure sending version sensors doesn't block (838fd1e)
  • linux: ⚡ use unbuffered channel for disk usage sensors (9b8b50a)
  • linux: ⚡ use unbuffered channel for hardware sensor updates (d4bbee2)
  • linux: ⚡ use unbuffered channel for time sensors (13bf514)
  • linux/hwmon: refactor sensor parsing (again) (de865f1)
  • linux/proc: 🐛 fix stringer generation (b0e5dc8)

Code Refactoring

  • major MQTT functionality refactor (decd825)

Don't miss a new go-hass-agent release

NewReleases is sending notifications on new releases.