Cool, where did you take the inspiration for this?
How did you get the information for the unifi devices?
Through the SNMP integration. Everything is described in my repo here and the relevant code in the system_monitoring.yaml file starts here. Let me know if you need help to set it up.
Never used SNMP before, but works like a charm.
Will have a deeper look in the next days.
thanks, the monitoring side is something I just did by myself but a lot of things are still missing. For the left side I’m using https://github.com/DBuit/sidebar-card and I navigate through the different statistics pages using https://github.com/bramkragten/custom-ui/tree/master/swipe-card (the entire ui is made to be used on a tablet)
How did you find this?
baseoid: 1.3.6.1.4.1.41112.1.6.3.3.0
Which sensor are you talking about?
This one
- platform: snmp
name: Firmware AP livingroom
host: 10.10.0.14
community: 'public'
baseoid: 1.3.6.1.4.1.41112.1.6.3.6.0
I have a AP UAP-AC-LR. and are struggeling with finding the baseoid code
Some of them I found in the Unifi Forum/Google and some I found myself by using an MiB Browser.
Thanks… Does the sensor show seconds? i get this:
sensor.driftstid_ap_stue 3599965
The OID I use for uptime are in seconds. I then use a value template to convert it to the format 11d10h15m
. E.g.
- platform: snmp
name: Uptime AP livingroom
host: 10.10.0.14
community: 'public'
baseoid: 1.3.6.1.2.1.1.3.0
value_template: >
{%- set time = value | int // 100 %}
{%- set minutes = ((time % 3600) // 60) %}
{%- set minutes = '{}min'.format(minutes) if minutes > 0 else '' %}
{%- set hours = ((time % 86400) // 3600) %}
{%- set hours = '{}hr '.format(hours) if hours > 0 else '' %}
{%- set days = (time // 86400) %}
{%- set days = '{}d '.format(days) if days > 0 else '' %}
{{ 'Less than 1 min' if time < 60 else days + hours + minutes }}
Awesome! Thanks for your help
Hi Everyone ,
I need a couple of info , i have HA running on a PI4 which with sys mon i have cpu ram & tem
i have a Synolology which has its sensors.
On the sysnology i have 4 dockers containers , how can i expose them as a sensors ?
I have an Odroid N2+ which runs coreelec , i got the temperature with this ssh script , i would get also RAM and CPU usage , is there a way to get them as a % ?
Thanks
- platform: ssh
host: 192.168.xx.xx
username: xxx
password: xxx
name: Coreelec CPU Temperature
command: cat /sys/class/thermal/thermal_zone0/temp
unit_of_measurement: "°C"
value_template: >-
{%- set line = value.split("\r\n") -%}
{{ (line[1]|int / 1000) | round(1) }}
How often does the AP update the uptime? Mine just stay the same…
Don’t know exactly, can only tell you that mine changes every min in the frontend, with the config I posted. What model is the AP? Maybe you need a different baseoid.
I have Model: UAP-AC-LR.
All other info looks ok… i found the baseoid on MiB browser. Found two files on a forum.
I did not copy yours
Here you see the difference:
Hi , sorry , can you tell me how did you pull the info of the dockers ? i have a synology with some on it and i would understand how to pull infos out.
Thanks
Please check my previous answer:
https://community.home-assistant.io/t/system-monitoring-how-does-your-look/109713/592
Not sure if it works in the Synology.