🎉 Release of add-on Network UPS Tools 0.4.0

This commit is contained in:
Community Hass.io Add-ons Bot 2021-01-22 22:20:00 +00:00
parent 708f5000f8
commit a26a8f0e96
5 changed files with 42 additions and 45 deletions

View file

@ -904,10 +904,10 @@ SOFTWARE.
[matrix-armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg [matrix-armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg
[matrix-armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg [matrix-armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
[matrix-i386-shield]: https://img.shields.io/badge/i386-yes-green.svg [matrix-i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
[addon-nut]: https://github.com/hassio-addons/addon-nut/tree/v0.3.1 [addon-nut]: https://github.com/hassio-addons/addon-nut/tree/v0.4.0
[addon-doc-nut]: https://github.com/hassio-addons/addon-nut/blob/v0.3.1/README.md [addon-doc-nut]: https://github.com/hassio-addons/addon-nut/blob/v0.4.0/README.md
[nut-issue]: https://github.com/hassio-addons/addon-nut/issues [nut-issue]: https://github.com/hassio-addons/addon-nut/issues
[nut-version-shield]: https://img.shields.io/badge/version-v0.3.1-blue.svg [nut-version-shield]: https://img.shields.io/badge/version-v0.4.0-blue.svg
[nut-aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg [nut-aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[nut-amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg [nut-amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[nut-armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg [nut-armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg

View file

@ -1,16 +1,16 @@
Release to fix issues with SNMP devices. ## Whats changed
NUT is now being built rather than relying on the Alpine package. This should resolve the issues with the current release and 32 bit compatibility (particularly on ARM). ## 🚀 Enhancements
Although USB connected devices have been confirmed to be working, please ensure to snapshot prior to the upgrade, and report any issues found. - ⬆Update base image to v9.0.1 and dependencies @sinclairpaul (#65)
- 🔨Add openssl=1.1.1g-r0 ## 🧰 Maintenance
- 🔨Add net-snmp-libs=5.8-r3
- 🔨Add neon=0.31.1-r0
- 🔨Keep libtool installed
Questions? Join our Discord server! https://discord.me/hassioaddons - Cleanup repository @frenck (#60)
- Happy New Year @frenck (#62)
- Upgrade Code of Conduct @frenck (#63)
- 🔨 Add new CI workflow @sinclairpaul (#64)
[Full Changelog][changelog] ## ⬆️ Dependency updates
[changelog]: https://github.com/hassio-addons/addon-nut/compare/v0.3.0...v0.3.1 - ⬆Update base image to v9.0.1 and dependencies @sinclairpaul (#65)

View file

@ -71,7 +71,7 @@ devices:
port: auto port: auto
config: [] config: []
mode: netserver mode: netserver
shutdown_host: 'false' shutdown_host: "false"
``` ```
**Note**: _This is just an example, don't copy and paste it! Create your own!_ **Note**: _This is just an example, don't copy and paste it! Create your own!_
@ -86,7 +86,7 @@ dealing with an unknown issue. Possible values are:
- `debug`: Shows detailed debug information. - `debug`: Shows detailed debug information.
- `info`: Normal (usually) interesting events. - `info`: Normal (usually) interesting events.
- `warning`: Exceptional occurrences that are not errors. - `warning`: Exceptional occurrences that are not errors.
- `error`: Runtime errors that do not require immediate action. - `error`: Runtime errors that do not require immediate action.
- `fatal`: Something went terribly wrong. Add-on becomes unusable. - `fatal`: Something went terribly wrong. Add-on becomes unusable.
Please note that each level automatically includes log messages from a Please note that each level automatically includes log messages from a
@ -261,7 +261,7 @@ Whenever your UPS changes state, an event named `nut.ups_event` will be fired.
It's payload looks like this: It's payload looks like this:
| Key | Value | | Key | Value |
|---------------|----------------------------------------------| | ------------- | -------------------------------------------- |
| `ups_name` | The name of the UPS as you configured it | | `ups_name` | The name of the UPS as you configured it |
| `notify_type` | The type of notification | | `notify_type` | The type of notification |
| `notify_msg` | The NUT default message for the notification | | `notify_msg` | The NUT default message for the notification |
@ -271,7 +271,7 @@ See the below table for more information as well as the message that will be in
`notify_msg`. `%s` is automatically replaced by NUT with your UPS name. `notify_msg`. `%s` is automatically replaced by NUT with your UPS name.
| Type | Cause | Default Message | | Type | Cause | Default Message |
|------------|-----------------------------------------------------------------------|----------------------------------------------------| | ---------- | --------------------------------------------------------------------- | -------------------------------------------------- |
| `ONLINE` | UPS is back online | "UPS %s on line power" | | `ONLINE` | UPS is back online | "UPS %s on line power" |
| `ONBATT` | UPS is on battery | "UPS %s on battery" | | `ONBATT` | UPS is on battery | "UPS %s on battery" |
| `LOWBATT` | UPS has a low battery (if also on battery, it's "critical") | "UPS %s battery is low" | | `LOWBATT` | UPS has a low battery (if also on battery, it's "critical") | "UPS %s battery is low" |
@ -288,21 +288,21 @@ This event allows you to create automations to do things like send a
```yaml ```yaml
automations: automations:
- alias: 'UPS changed state' - alias: "UPS changed state"
trigger: trigger:
- platform: event - platform: event
event_type: nut.ups_event event_type: nut.ups_event
action: action:
- service: notify.mobile_app_<your_device_id_here> - service: notify.mobile_app_<your_device_id_here>
data_template: data_template:
title: "UPS changed state" title: "UPS changed state"
message: "{{ trigger.event.data.notify_msg }}" message: "{{ trigger.event.data.notify_msg }}"
data: data:
push: push:
sound: sound:
name: default name: default
critical: 1 critical: 1
volume: 1.0 volume: 1.0
``` ```
For more information, see the NUT docs [here][nut-notif-doc-1] and For more information, see the NUT docs [here][nut-notif-doc-1] and
@ -311,16 +311,15 @@ For more information, see the NUT docs [here][nut-notif-doc-1] and
## Changelog & Releases ## Changelog & Releases
This repository keeps a change log using [GitHub's releases][releases] This repository keeps a change log using [GitHub's releases][releases]
functionality. The format of the log is based on functionality.
[Keep a Changelog][keepchangelog].
Releases are based on [Semantic Versioning][semver], and use the format Releases are based on [Semantic Versioning][semver], and use the format
of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented of `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented
based on the following: based on the following:
- ``MAJOR``: Incompatible or major changes. - `MAJOR`: Incompatible or major changes.
- ``MINOR``: Backwards-compatible new features and enhancements. - `MINOR`: Backwards-compatible new features and enhancements.
- ``PATCH``: Backwards-compatible bugfixes and package updates. - `PATCH`: Backwards-compatible bugfixes and package updates.
## Support ## Support
@ -348,7 +347,7 @@ check [the contributor's page][contributors].
MIT License MIT License
Copyright (c) 2018-2020 Dale Higgs Copyright (c) 2018-2021 Dale Higgs
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
@ -376,7 +375,6 @@ SOFTWARE.
[fake-usb]: https://github.com/hassio-addons/addon-nut/issues/24 [fake-usb]: https://github.com/hassio-addons/addon-nut/issues/24
[forum]: https://community.home-assistant.io/t/community-hass-io-add-on-network-ups-tools/68516 [forum]: https://community.home-assistant.io/t/community-hass-io-add-on-network-ups-tools/68516
[issue]: https://github.com/hassio-addons/addon-nut/issues [issue]: https://github.com/hassio-addons/addon-nut/issues
[keepchangelog]: https://keepachangelog.com/en/1.0.0/
[nut-acknowledgements]: https://networkupstools.org/acknowledgements.html [nut-acknowledgements]: https://networkupstools.org/acknowledgements.html
[nut-compatible]: https://networkupstools.org/stable-hcl.html [nut-compatible]: https://networkupstools.org/stable-hcl.html
[nut-conf]: https://networkupstools.org/docs/man/nut.conf.html [nut-conf]: https://networkupstools.org/docs/man/nut.conf.html

View file

@ -67,11 +67,11 @@ If you are more interested in stable releases of our add-ons:
[discord]: https://discord.me/hassioaddons [discord]: https://discord.me/hassioaddons
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg [forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/t/community-hass-io-add-on-network-ups-tools/68516 [forum]: https://community.home-assistant.io/t/community-hass-io-add-on-network-ups-tools/68516
[maintenance-shield]: https://img.shields.io/maintenance/yes/2020.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
[nut-acknowledgements]: https://networkupstools.org/acknowledgements.html [nut-acknowledgements]: https://networkupstools.org/acknowledgements.html
[nut-compatible]: https://networkupstools.org/stable-hcl.html [nut-compatible]: https://networkupstools.org/stable-hcl.html
[nut-features]: https://networkupstools.org/features.html [nut-features]: https://networkupstools.org/features.html
[nut-sensor-docs]: https://www.home-assistant.io/components/sensor.nut/ [nut-sensor-docs]: https://www.home-assistant.io/components/sensor.nut/
[project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg
[release-shield]: https://img.shields.io/badge/version-v0.3.1-blue.svg [release-shield]: https://img.shields.io/badge/version-v0.4.0-blue.svg
[release]: https://github.com/hassio-addons/addon-nut/tree/v0.3.1 [release]: https://github.com/hassio-addons/addon-nut/tree/v0.4.0

View file

@ -1,6 +1,6 @@
{ {
"name": "Network UPS Tools", "name": "Network UPS Tools",
"version": "0.3.1", "version": "0.4.0",
"slug": "nut", "slug": "nut",
"description": "Manage battery backup (UPS) devices", "description": "Manage battery backup (UPS) devices",
"url": "https://github.com/hassio-addons/addon-nut", "url": "https://github.com/hassio-addons/addon-nut",
@ -12,8 +12,7 @@
"armv7", "armv7",
"i386" "i386"
], ],
"auto_uart": "true", "auto_uart": true,
"boot": "auto",
"hassio_api": true, "hassio_api": true,
"hassio_role": "manager", "hassio_role": "manager",
"homeassistant_api": true, "homeassistant_api": true,
@ -85,5 +84,5 @@
"i_like_to_be_pwned": "bool?", "i_like_to_be_pwned": "bool?",
"leave_front_door_open": "bool?" "leave_front_door_open": "bool?"
}, },
"image": "hassioaddons/nut-{arch}" "image": "ghcr.io/hassio-addons/nut/{arch}"
} }