Hello,
is there a way to show addons stats all at once, so I do not have to check each one individually by hassio addons stats ...
Thank you.
Hello,
is there a way to show addons stats all at once, so I do not have to check each one individually by hassio addons stats ...
Thank you.
Did you ever get an answer on this? I am looking for the same thing.
What stats are you looking for specifically?
Unfortunately I did not
I am looking for CPU usage.
You mean docker container/addon stats? Like this?
Iām more interested in memory buy could do thr same with CPU
That looks nice! Can you tell me how did you get it please?
Edit: I am using clean HASS OS.
Thank you!
Iām using hadockermon by Phil Hawthorne and a custom component hadockerswitchā¦ If you can add docker containers it works well. I do run home assistant supervised (hassio) and start the extra containers by docker composeā¦ if you do similar I can provide more details tomorrow when Iām at my computer.
I seeā¦ but unfortunately I donāt think I have that level of access in clean HASS OS.
Thanks anyway.
Example:
HACS installed
Card 1 current v - available version
Card 2 ā¦
Card 3ā¦
ADD-Ons
SMB Current Version - updated version
SSH
Anyone know how to get this info?
Add-ons I am running
adb
file editor
mosquitto broker
ssh server
samba share
would like to show current version running and available
ha supervisor info
so how can one link that into HA to display on a screen?
Take a look at the api docs. Looks like you should be able to get the info you want.
Hereās an example of how to pull it into a sensor.
Another option is docker stats
using the āSSH & Web Terminalā addon with protection mode off.
The following will pull the current version of an add-on you are running. Im using a0d7b954_adguard
as an example here. a0d7b954_adguard
is the end of the URL for my adguard addon and is the add-on name to use. Add-ons developed by HomeAssistant start with ācoreā.
You can create the long lived token on your profile page. The secret is "Bearer a;dkaldkfasuperlongstringoflettersandnumbersa;lkdfa;dlkfa;"
that you get from your profile page. Just add the Bearer before it.
- platform: rest
resource: http://192.168.1.2:8123/api/hassio/addons/a0d7b954_adguard/info
name: adguard
value_template: '{{ value_json.data.version }}'
scan_interval: 360
headers:
Authorization: !secret llt
Content-Type: application/json
To pull the latest version of an add-on you can use the github api.
- platform: command_line
command: 'curl https://api.github.com/repos/hassio-addons/addon-adguard-home/releases/latest'
name: Lastest Release
scan_interval: 360
value_template: '{{ value_json.name }}'
- platform: rest
resource: http://192.168.1.2:8123/api/hassio/addons/a0d7b954_adguard/info
name: adguard
value_template: '{{ value_json.data.state }}'
scan_interval: 360
headers:
Authorization: !secret llt
Content-Type: application/json
Im really sorry, I was doing too much at once, āversionā will get the current running version. I edited the previous post.
Rather than the command line for the latest version. run a second rest sensor for last_version
which pulls the latest available version that the add-on can see. Its also formatted the same as the other sensor if you want to compare the two for automatons.
Im not sure the full data set is documented anywhere. You can use various tools to probe the api and see what it returns. Here is a full dump using http://192.168.1.2:8123/api/hassio/addons/a0d7b954_adguard/info
All add-ons will report the same options from what I have seen.
{"result": "ok", "data": {"name": "AdGuard Home", "slug": "a0d7b954_adguard", "hostname": "a0d7b954-adguard", "dns": ["a0d7b954-adguard.local.hass.io"], "description": "Network-wide ads & trackers blocking DNS server", "long_description": "# Home Assistant Community Add-on: AdGuard Home\n\n[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]\n\n[![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]\n\n[![Sponsor Frenck via GitHub Sponsors][github-sponsors-shield]][github-sponsors]\n\n[![Support Frenck on Patreon][patreon-shield]][patreon]\n\nNetwork-wide ads & trackers blocking DNS server.\n\n## About\n\nAdGuard Home is a network-wide ad-and-tracker blocking DNS server with\nparental control (adult content blocking) capabilities. Its purpose is to let\nyou control your entire network and all your devices, and it does not require\nusing a client-side program.\n\nAdGuard Home provides a beautiful, easy and feature-rich web interface to\neasily manage the filtering process and its settings.\n\n[Click here for the full documentation][docs]\n\n![AdGuard Home in the Home Assistant frontend][screenshot]\n\n[discord-shield]: https://img.shields.io/discord/478094546522079232.svg\n[discord]: https://discord.me/hassioaddons\n[docs]: https://github.com/hassio-addons/addon-adguard-home/blob/770912cebf91c30d382a50c3ae98f22b2529aa80/README.md\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg\n[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-adguard-home/90684?u=frenck\n[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png\n[github-sponsors]: https://github.com/sponsors/frenck\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2020.svg\n[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png\n[patreon]: https://www.patreon.com/frenck\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-production%20ready-brightgreen.svg\n[release-shield]: https://img.shields.io/badge/version-v2.3.2-blue.svg\n[release]: https://github.com/hassio-addons/addon-adguard-home/tree/v2.3.2\n[screenshot]: https://github.com/hassio-addons/addon-adguard-home/raw/v2.3.2/images/screenshot.png", "advanced": false, "stage": "stable", "auto_update": false, "repository": "a0d7b954", "version": "2.3.2", "last_version": "2.3.2", "protected": true, "rating": 6, "boot": "auto", "options": {"ssl": true, "certfile": "fullchain.pem", "keyfile": "privkey.pem"}, "schema": [{"name": "log_level", "optional": true, "type": "select", "options": ["trace", "debug", "info", "notice", "warning", "error", "fatal"]}, {"name": "ssl", "required": true, "type": "boolean"}, {"name": "certfile", "required": true, "type": "string"}, {"name": "keyfile", "required": true, "type": "string"}, {"name": "leave_front_door_open", "optional": true, "type": "boolean"}], "arch": ["aarch64", "amd64", "armhf", "armv7", "i386"], "machine": [], "homeassistant": "0.101.0b0", "url": "https://github.com/hassio-addons/addon-adguard-home", "state": "started", "detached": false, "available": true, "build": false, "network": {"53/udp": 53, "80/tcp": null}, "network_description": {"53/udp": "DNS server port", "80/tcp": "Web interface (Not required for Ingress)"}, "host_network": true, "host_pid": false, "host_ipc": false, "host_dbus": false, "privileged": [], "full_access": false, "apparmor": "default", "devices": null, "icon": true, "logo": true, "changelog": true, "documentation": false, "stdin": false, "webui": "https://[HOST]:None", "hassio_api": true, "hassio_role": "default", "auth_api": true, "homeassistant_api": false, "gpio": false, "kernel_modules": false, "devicetree": false, "udev": false, "docker_api": false, "video": false, "audio": false, "audio_input": null, "audio_output": null, "services": [], "discovery": ["adguard"], "ip_address": "172.30.32.1", "ingress": true, "ingress_entry": "/api/hassio_ingress/QnJ4lBldEEZCvZSM3hUnU-4wrl_bU_WsrkUTpV1DO_I", "ingress_url": "/api/hassio_ingress/QnJ4lBldEEZCvZSM3hUnU-4wrl_bU_WsrkUTpV1DO_I/", "ingress_port": 62974, "ingress_panel": true}}
Go to the addon page in the supervisor panel. Once on that page look at the end of the URL. For example, since you asked about them originally and are likely running themā¦
mosquitto broker = core_mosquitto
ssh server = core_ssh
samba share = core_samba
That should give you an idea of what to look for.
Man I really appreciate it. It all makes sense now. Thanks!
The only one not working is ssh server = core_ssh.
I will have to dig into it some more.