System Monitoring - How does yours look?

Listing the entities defeats the purpose of this script. So you have to update it manually using this service: homeassistant.update_entity.
Call it from the dev tools services menu or from an automation.

      sensor_count:
        friendly_name: 'Number of Sensors'
        value_template: >
          {%- set domains = ['sensor'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      automation_count:
        friendly_name: 'Number of Automations'
        value_template: >
          {%- set domains = ['automation'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      script_count:
        friendly_name: 'Number of Scripts'
        value_template: >
          {%- set domains = ['script'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      switch_count:
        friendly_name: 'Number of Switches'
        value_template: >
          {%- set domains = ['switch'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      binary_sensor_count:
        friendly_name: 'Number of Binary Sensors'
        value_template: >
          {%- set domains = ['binary_sensor'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      lights_count:
        friendly_name: 'Number of Lights'
        value_template: >
          {%- set domains = ['light'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      tracker_count:
        friendly_name: 'Number of Devices'
        value_template: >
          {%- set domains = ['device_tracker'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      camera_count:
        friendly_name: 'Number of Devices'
        value_template: >
          {%- set domains = ['camera'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      fan_count:
        friendly_name: 'Number of Devices'
        value_template: >
          {%- set domains = ['fan'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      media_player_count:
        friendly_name: 'Number of Devices'
        value_template: >
          {%- set domains = ['media_player'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
          
      plant_count:
        friendly_name: 'Number of Devices'
        value_template: >
          {%- set domains = ['plant'] -%}
          {%- for domain in domains -%}
            {%- for item in states[domain] -%}
              {% if loop.first %}
                {{loop.length}}
              {% endif %}
            {%- endfor -%}
          {%- endfor -%}
5 Likes

Monitoring Spam




26 Likes

Looks great! can you share the configs?

1 Like

Very clean overview
What theme do you use and please share you config.

1 Like

How are you getting the info for your remaining space on the NAS drives?

1 Like

Also I wouldn’t mind seeing your config for the washing machine status too

1 Like

Impressive… Oh my… Amazing!
I need more of your config!

Can you share your vacuum card and what coffee machine are you using?

1 Like

@Sjeff, @elRadix, @Yoinkz

you can find details for my latest lovelace here As I don’t want to hijack this thread.

@getsmokes I use snmp to pull info from my NAS Drives, some drives already supported in HA.

My Coffee Machine is a cheap Aldi Pod one for around $100AUD. I have installed ultrasonic sensors in the water and waste reservoirs and have a weight sensor telling me how pods I have left.

4 Likes

Hey @SeanM, I noticed your Zwave count is empty, I get that too. Sometimes it shows the correct number and sometimes it’s just blank. Do you get that too or did you manage to fix yours?

Here’s how I setup mine to count Zwave devices. (thanks to @klogg)

zwave_count:
  friendly_name: Zwave Devices
  entity_id: sensor.date
  value_template: >
    {%- set domains = ['zwave'] -%}
    {%- for domain in domains -%}
      {%- for item in states[domain] -%}
        {% if loop.first %}
          {{loop.length}}
        {% endif %}
      {%- endfor -%}
    {%- endfor -%}

When the date changes, it’ll update the count.

Hi all

Anyone monitoring some Proxmox virtualizer data?

I would like to know CPU temp, but since the OS is the virtualizer don’t know how to do it!

From within the Proxmox Shell I used

apt-get install lm-sensors
sensors-detect
watch -n 1 sensors

and with this I can see those value, but I don’t know how to get int the Hassio VM (based on Ubuntu 18.04 with Docker.

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +59.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +59.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +51.0°C  (high = +100.0°C, crit = +100.0°C)

Any suggestion or experience?

Thanks

Like the gunners logo! :wink:

How did you manage to flatten the cards and lose the shadows? That looks so much better then the standard cards.

ha-card-box-shadow: '0 0px 0px 0 rgba(0, 0, 0, 0.0)'

Where do you apply this? I am still new to Home Assistant. :slight_smile:

Could you paste the code from the NAS? I am trying it here, but I can not get it to work. The connection with the nas is working but have no clue how to get get temperature. The temperature is not mentioned in the docs.

put it in configuration.yaml

frontend:
  themes:
	mytheme:
	  ha-card-box-shadow: '0 0px 0px 0 rgba(0, 0, 0, 0.0)'
	  ha-card-background: 'rgba(255, 255, 255, 0.9)'
	  ha-card-border-radius: '2px'
	  primary-text-color: 'hsl(0, 0%, 45%)'
1 Like

You can look here: https://www.home-assistant.io/components/snmp/

Every device has specific configuration. You need to look for specific OID in documentation or google it :slight_smile:

Ah ok, thanks. Never hear of that before. I will look into it!