System Monitoring - How does yours look?

Have you enabled the HACS Experimental feature?

I’m sorry for the delay in replying, but I finally found the problem, with this code it should work fine.

type: vertical-stack
cards:
  - type: entities
    card_mod:
      style: |
        ha-card {
          border-style: none;
          background: none;
          --mush-title-padding: 0px 0px 0px;
        }
        div.card-content {
          padding-bottom: 0px
        }
    entities:
      - type: custom:mushroom-title-card
        title: Componenti aggiuntivi
        subtitle: >-
          {{ integration_entities('Supervisor') | map('device_id') | unique |
          list | length }} Componenti installati
  - type: custom:auto-entities
    card:
      type: entities
      card_mod:
        style: |
          ha-card {
            border-style: none;
            background: none;
            --mush-title-font-size: 20px;
            --mush-title-padding: 0px 5px 0px;
          }
          h1.card-header{
            padding: 6px 16px 0px;
          }
          div.card-content {
            padding-top: 0px
          }
    filter:
      template: >
        {%- set dev = namespace() %} {%- set dev.name = '' %} {%- set
        dev.running = '' %} {%- set dev.newest_version = '' %} {%- set
        dev.version = '' %} {%- set dev.cpu_percent = '' %} {%- set
        dev.memory_percent = '' %} {%- set dev.update = '' %}

        {%- for devid in (integration_entities('Supervisor') | map('device_id')
        | unique) %}
          {%- set dev.name = device_attr(devid, "name") %}
          {%- set dev.running = '' %}
          {%- set dev.newest_version = '' %}
          {%- set dev.version = '' %}
          {%- set dev.cpu_percent = '' %}
          {%- set dev.memory_percent = '' %}
          {%- set dev.update = '' %}
          {%- for ent in device_entities(devid) %}
            {%- if (ent.find("running") | int>=0) %}
              {%- set dev.running = ent %}
            {%- endif %}
            {%- if (ent.find("newest_version") | int>=0) %}
              {%- set dev.newest_version = ent %}
            {%- endif %}
            {%- if ((ent.find("version") | int>=0) and (ent.find("newest_version") | int<0)) %}
              {%- set dev.version = ent %}
            {%- endif %}
            {%- if (ent.find("cpu_percent") | int>=0) %}
              {%- set dev.cpu_percent = ent %}
            {%- endif %}
            {%- if (ent.find("memory_percent") | int>=0) %}
              {%- set dev.memory_percent = ent %}
            {%- endif %}
            {%- if (ent.find("update") | int>=0) %}
              {%- set dev.update = ent %}
            {%- endif %}
          {%- endfor %}
          {%- if dev.version != '' %}
            {{-
              { 'type': 'section'
              }
            }},
            {{-
              { 'type': 'custom:mushroom-title-card',
                'title': dev.name
              }
            }},
            {{-
              { 'type': 'custom:mushroom-chips-card',
                'chips': [
                  {
                    'type': 'entity',
                    'entity': dev.running,
                    'icon_color': 'green'
                  },
                  {
                    'type': 'entity',
                    'entity': dev.version,
                    'icon_color': 'green',
                    'icon': 'mdi:package-variant-closed-check'
                  },
                  {
                    'type': 'entity',
                    'entity': dev.newest_version,
                    'icon_color': 'purple',
                    'icon': 'mdi:package-variant'
                  },
                  {
                    'type': 'entity',
                    'entity': dev.cpu_percent,
                    'icon_color': 'blue'
                  },
                  {
                    'type': 'entity',
                    'entity': dev.memory_percent,
                    'icon_color': 'orange'
                  },
                ]
              }
            }},
            {{-
              { 'type': 'custom:mushroom-update-card',
                'entity': dev.update,
                'name': dev.name,
                'show_buttons_control': true,
                'collapsible_controls': false,
                'icon_type': 'entity-picture',
                'layout': 'horizontal'
              }
            }},
          {%- endif %}
        {%- endfor %}

Yesterday I switched on “experimental features” - and got “sensor.hacs” unavailable.
I have been using HACS for 3.5 years - it happened the 1st time.

Has you can read here, if the Experimental feature is enabled, sensor.hacs is removed

It is said there - “attributes are removed”, not “sensor becomes unavailable”.

Good morning Kejszijo,
congratulations for the work you did.
I was particularly impressed by your Solaredge 10K Solar inverter board, I ask you if you can pass me the yaml code.
Thank you
Daniele

Hello,

I already use the built-in energy dashboard.

With the built in one I get this
11

Your paper is better
12

I used this code for mine

Easy to make with apexcharts…

I would be happy if Kejszijo would share the card code,
or explain in detail how to do it.
Thank you

Faecon, thanks for the advice.
With apexcharts I found this card.
Of course everything can always be improved.

1 Like

Is it possible to share your config ?

MiniPC ASUS PN40 Intel Pentium Silver J5005 Ram 8 GB

His yaml files :face_with_peeking_eye:

Hi - looking for some help here.

I have a USB drive connected to my RapsberryPi.

via, terminal command = df -H

Filesystem = /dev/sda1
Mounted on = /media/mypiusername/myexternaldrivename

I would like to have a card on home assistant that shows remaining disk space of external hard drive noted above.

I have been able to create a “Sensor” Card.

That shows free disk space of my pi sd card, but can’t seem to figure out how to change it to show the mounted external HD.

See attached image.

In addition I have a card that shows other “System monitor” info. Last Boot.

The date is in format 2024-03-24

how can I change it to 24-03-2024?

Screenshot 2024-03-22 at 21.49.05

type: custom:button-card
entity: binary_sensor.rpi_power_status
aspect_ratio: 1/1
name: Raspberry <br>Pi
styles:
  card:
    - border-radius: 10%
    - padding: 7%
    - font-size: 14px
    - text-transform: capitalize
  grid:
    - grid-template-areas: '"i n" "temp temp" "boot boot" "ip ip "'
    - grid-template-columns: 1fr 1fr
    - grid-template-rows: 1fr min-content min-content min-content
  name:
    - font-weight: null
    - font-size: 14px
    - color: '#00000'
    - text-align: left
    - margin-top: 5px
    - justify-self: start
    - padding-bottom: 4px
  img_cell:
    - justify-content: start
    - align-items: start
    - margin: none
  icon:
    - align-self: start
    - color: ''
    - width: 80%
    - overflow: visible
    - margin-top: 0%
  custom_fields:
    temp:
      - padding-bottom: 2px
      - align-self: middle
      - justify-self: start
    boot:
      - padding-bottom: 2px
      - align-self: middle
      - justify-self: start
    ip:
      - padding-bottom: 2px
      - align-self: middle
      - justify-self: start
custom_fields:
  ip: |
    [[[
       return `<ha-icon
                icon="mdi:ip"
                style="width: 20px; height: 20px; color: #00000;">
                </ha-icon><span>  &nbsp  <span style="color: var(--text-color-sensor);">${states['sensor.system_monitor_ipv4_address_eth0'].state}</span></span>` 
    ]]]
  boot: |
    [[[
       return `<ha-icon
                icon="mdi:clock"
                style="width: 20px; height: 20px; color: #00000;">
                </ha-icon><span> &nbsp <span style="color: var(--text-color-sensor);">${states['sensor.system_monitor_last_boot'].state.split("T")[0]}</span></span>` 
    ]]]  
  temp: |
    [[[
       return `<ha-icon
                icon="mdi:temperature-celsius"
                style="width: 20px; height: 20px; color: #00000;">
                </ha-icon><span>  &nbsp <span style="color: var(--text-color-sensor);">${states['sensor.system_monitor_processor_temperature'].state}</span></span>` 
    ]]]

Code for date format 2024-03-21 shown below.

boot: |
    [[[
       return `<ha-icon
                icon="mdi:clock"
                style="width: 20px; height: 20px; color: #00000;">
                </ha-icon><span> &nbsp <span style="color: var(--text-color-sensor);">${states['sensor.system_monitor_last_boot'].state.split("T")[0]}</span></span>` 
    ]]]  

See attached image and code.

Thank you.

1 Like

Go to System Monitor integration entities and enable the disk_free entity for your mount point and then use that in your dashboard.

Thanks for the reply.

Via, Integrations → System Monitor

I can see, 1 service and 58 entities.

The only “disk_free” entity i can see is : sensor.system_monitor_diskfree

This seems to be the Pi SD card hard drive.

Do i need to refresh, System monitor to show the mount point?

I have tried to, “reload” system monitor. But no luck.

Also attempted to restart HA and RaspberryPi.

The external drive does mount upon every Pi reboot and can navigate through it’s folder structure.

A thought - my HA installation is via a docker container. Could this be causing a problem?

Thanks.

All mount points available during integration startup is automatically discovered and an entity is made for it.

From within the docker container check which mount points are available.