diff --git a/README.md b/README.md index 82ec88eda..fc1abb503 100644 --- a/README.md +++ b/README.md @@ -863,10 +863,10 @@ SOFTWARE. [mopidy-armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg [mopidy-armv7-shield]: https://img.shields.io/badge/armv7-no-red.svg [mopidy-i386-shield]: https://img.shields.io/badge/i386-no-red.svg -[addon-nut]: https://github.com/hassio-addons/addon-nut/tree/56f8ad2 -[addon-doc-nut]: https://github.com/hassio-addons/addon-nut/blob/56f8ad2/README.md +[addon-nut]: https://github.com/hassio-addons/addon-nut/tree/4c61a99 +[addon-doc-nut]: https://github.com/hassio-addons/addon-nut/blob/4c61a99/README.md [nut-issue]: https://github.com/hassio-addons/addon-nut/issues -[nut-version-shield]: https://img.shields.io/badge/version-56f8ad2-blue.svg +[nut-version-shield]: https://img.shields.io/badge/version-4c61a99-blue.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-armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg diff --git a/nut/CHANGELOG.md b/nut/CHANGELOG.md index c7a4d2918..c3245cd4a 100644 --- a/nut/CHANGELOG.md +++ b/nut/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog since v0.8.0 +- Migrate JSON config to YAML (#195) - Switch to centralized GitHub Action Workflows (#194) - Bump actions/checkout from 2.3.4 to 2.3.5 (#186) diff --git a/nut/README.md b/nut/README.md index bd496ab33..a8165fa8c 100644 --- a/nut/README.md +++ b/nut/README.md @@ -61,5 +61,5 @@ If you are more interested in stable releases of our add-ons: [nut-features]: https://networkupstools.org/features.html [nut-ha-docs]: https://www.home-assistant.io/integrations/nut/ [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg -[release-shield]: https://img.shields.io/badge/version-56f8ad2-blue.svg -[release]: https://github.com/hassio-addons/addon-nut/tree/56f8ad2 \ No newline at end of file +[release-shield]: https://img.shields.io/badge/version-4c61a99-blue.svg +[release]: https://github.com/hassio-addons/addon-nut/tree/4c61a99 \ No newline at end of file diff --git a/nut/config.json b/nut/config.json deleted file mode 100644 index 4820232ff..000000000 --- a/nut/config.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "name": "Network UPS Tools", - "version": "56f8ad2", - "slug": "nut", - "description": "Manage battery backup (UPS) devices", - "url": "https://github.com/hassio-addons/addon-nut", - "startup": "system", - "arch": [ - "aarch64", - "amd64", - "armhf", - "armv7", - "i386" - ], - "uart": true, - "udev": true, - "usb": true, - "hassio_api": true, - "hassio_role": "manager", - "homeassistant_api": true, - "ports": { - "3493/tcp": null - }, - "ports_description": { - "3493/tcp": "Network UPS Tools" - }, - "options": { - "users": [ - { - "username": "", - "password": "", - "instcmds": [ - "all" - ], - "actions": [] - } - ], - "devices": [ - { - "name": "myups", - "driver": "usbhid-ups", - "port": "auto", - "config": [] - } - ], - "mode": "netserver", - "shutdown_host": "false" - }, - "schema": { - "log_level": "list(trace|debug|info|notice|warning|error|fatal)?", - "users": [ - { - "username": "str", - "password": "password", - "instcmds": [ - "str" - ], - "actions": [ - "str" - ], - "upsmon": "list(master|slave)?" - } - ], - "devices": [ - { - "name": "str", - "driver": "str", - "port": "str", - "config": [ - "str" - ] - } - ], - "mode": "list(netserver|netclient)", - "shutdown_host": "bool", - "list_usb_devices": "bool?", - "remote_ups_name": "str?", - "remote_ups_host": "str?", - "remote_ups_password": "password?", - "remote_ups_user": "str?", - "upsd_maxage": "int?", - "upsmon_deadtime": "int?", - "i_like_to_be_pwned": "bool?", - "leave_front_door_open": "bool?" - }, - "image": "ghcr.io/hassio-addons/nut/{arch}" -} \ No newline at end of file diff --git a/nut/config.yaml b/nut/config.yaml new file mode 100644 index 000000000..28e2fcc8f --- /dev/null +++ b/nut/config.yaml @@ -0,0 +1,64 @@ +arch: +- aarch64 +- amd64 +- armhf +- armv7 +- i386 +description: Manage battery backup (UPS) devices +hassio_api: true +hassio_role: manager +homeassistant_api: true +image: ghcr.io/hassio-addons/nut/{arch} +name: Network UPS Tools +options: + devices: + - config: [] + driver: usbhid-ups + name: myups + port: auto + mode: netserver + shutdown_host: 'false' + users: + - actions: [] + instcmds: + - all + password: '' + username: '' +ports: + 3493/tcp: null +ports_description: + 3493/tcp: Network UPS Tools +schema: + devices: + - config: + - str + driver: str + name: str + port: str + i_like_to_be_pwned: bool? + leave_front_door_open: bool? + list_usb_devices: bool? + log_level: list(trace|debug|info|notice|warning|error|fatal)? + mode: list(netserver|netclient) + remote_ups_host: str? + remote_ups_name: str? + remote_ups_password: password? + remote_ups_user: str? + shutdown_host: bool + upsd_maxage: int? + upsmon_deadtime: int? + users: + - actions: + - str + instcmds: + - str + password: password + upsmon: list(master|slave)? + username: str +slug: nut +startup: system +uart: true +udev: true +url: https://github.com/hassio-addons/addon-nut +usb: true +version: 4c61a99