Glances sensor missing

Glances doesn’t want to make any sensor in HA.
In configuration i have

sensor:
  - platform: glances
    host: 192.168.7.254
    name: Server
    version: 3
    port: 61208
    resources:
      - "memory_use"
      - "disk_use_percent"
      - "cpu_use_percent"

logger:	
  default: info
  logs:
    homeassistant.components.glances: debug

From cmd works correctly

bash-5.0# curl -X GET http://192.168.7.254:61208/api/3/mem/free
{“free”: 1724407808}

Log looks ok

bash-5.0# grep glances home-assistant.log
2019-11-30 18:41:45 INFO (SyncWorker_19) [homeassistant.loader] Loaded glances from homeassistant.components.glances
2019-11-30 18:41:54 INFO (MainThread) [homeassistant.setup] Setting up glances
2019-11-30 18:41:54 INFO (MainThread) [homeassistant.setup] Setup of domain glances took 0.0 seconds.
2019-11-30 18:41:54 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.glances
bash-5.0#
bash-5.0# grep memory_use home-assistant.log
bash-5.0#

Where should I look for a problem?

show us your lovelace code

Here is my all lovelace file: https://anotepad.com/note/read/tcak695

paste in here

{
    "data": {
        "config": {
            "resources": [
                {
                    "type": "module",
                    "url": "/customcards/github/custom-cards/tracker-card.js?track=true"
                },
                {
                    "type": "js",
                    "url": "/local/custom-lovelace/monster-card/monster-card.js"
                },
                {
                    "type": "js",
                    "url": "/local/custom-lovelace/home-setter/home-setter.js"
                },
                {
                    "type": "js",
                    "url": "/local/custom-lovelace/home-setter/home-setter.js"
                },
                {
                    "type": "module",
                    "url": "/local/custom-lovelace/weather-card/weather-card.js"
                },
                {
                    "type": "module",
                    "url": "https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/weather-card/weather-card.min.js"
                }
            ],
            "title": "HA",
            "views": [
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                "sensor.zewnetrz",
                            ],
                            "show_header_toggle": false,
                            "title": "Temperatura",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "switch.tio1_vout1",
                                "light.tio1_vout2"
                            ],
                            "show_header_toggle": false,
                            "title": "Ledy",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "sensor.last_boot_template"
                                },
                                {
                                    "entity": "sensor.processor_use"
                                },
                                {
                                    "entity": "sensor.memory_use_percent"
                                },
                                {
                                    "entity": "sensor.disk_use_percent"
                                },
                                {
                                    "entity": "sensor.disk_use_percent_mnt_ssd"
                                },
                                {
                                    "entity": "sensor.disk_use_percent_mnt_hdd"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "System",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "sensor.speedtest_ping",
                                "sensor.speedtest_download",
                                "sensor.speedtest_upload"
                            ],
                            "show_header_toggle": false,
                            "title": "Speedtest",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "input_number.esp_lazienka_czas",
                            ],
                            "show_header_toggle": false,
                            "title": "Wentylatory",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "sensor.lazienka_t",
                            ],
                            "show_header_toggle": false,
                            "title": "\u0141azienki",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "binary_sensor.nas",
                            ],
                            "show_header_toggle": false,
                            "title": "Net",
                            "type": "entities"
                        },
                        {
                            "entities": [
                            ],
                            "show_header_toggle": false,
                            "title": "Satel",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "switch.skrypt"
                                },
                                {
                                    "entity": "switch.lazienka_gora_podloga"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "Prze\u0142\u0105cznik",
                            "type": "entities"
                        },
                    ],
                    "path": "default_view",
                    "title": "HA"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                "switch.tio1_vout1",
                                "light.tio1_vout2"
                            ],
                            "show_header_toggle": false,
                            "title": "Ledy",
                            "type": "entities"
                        }
                    ],
                    "icon": "mdi:lightbulb",
                    "path": "led",
                    "title": "Led"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                "sensor.speedtest_ping",
                                "sensor.speedtest_download",
                                "sensor.speedtest_upload"
                            ],
                            "show_header_toggle": false,
                            "title": "Speedtest",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "sensor.speedtest_download",
                                "sensor.speedtest_upload",
                                "sensor.speedtest_ping"
                            ],
                            "title": "Speedtest",
                            "type": "history-graph"
                        },
                        {
                            "cards": [
                                {
                                    "entities": [
                                        "sensor.speedtest_ping",
                                        "sensor.speedtest_download",
                                        "sensor.speedtest_upload"
                                    ],
                                    "show_header_toggle": false,
                                    "title": "Speedtest",
                                    "type": "entities"
                                },
                                {
                                    "entities": [
                                        "sensor.speedtest_download",
                                        "sensor.speedtest_upload",
                                        "sensor.speedtest_ping"
                                    ],
                                    "type": "history-graph"
                                }
                            ],
                            "type": "vertical-stack"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "sensor.last_boot_template"
                                },
                                {
                                    "entity": "sensor.processor_use"
                                },
                                {
                                    "entity": "sensor.memory_use_percent"
                                },
                                {
                                    "entity": "sensor.disk_use_percent"
                                },
                                {
                                    "entity": "sensor.disk_use_percent_mnt_ssd"
                                },
                                {
                                    "entity": "sensor.disk_use_percent_mnt_hdd"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "System",
                            "type": "entities"
                        }
                    ],
                    "icon": "mdi:server",
                    "path": "server",
                    "title": "Server"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                {
                                    "entity": "sensor.licznik_gazu"
                                },
                                {
                                    "entity": "switch.piec"
                                },
                                {
                                    "entity": "input_number.piec"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "Piec",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "switch.step2",
                            ],
                            "show_header_toggle": false,
                            "title": "Rozdzielacze",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "input_number.temp_png"
                                },
                                {
                                    "entity": "input_number.temp_lazienka"
                                },
                                {
                                    "entity": "input_number.temp_lazienka_rano"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "AU Piec",
                            "type": "entities"
                        }
                    ],
                    "icon": "mdi:stove",
                    "path": "piec",
                    "title": "Piec"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                {
                                    "name": "Piec",
                                    "type": "weblink",
                                    "url": "http://yogi:3000/dashboard/db/piec?orgId=1"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "Wykresy",
                            "type": "entities"
                        }
                    ],
                    "icon": "mdi:chart-areaspline",
                    "path": "wykres",
                    "title": "Wykres"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                {
                                    "entity": "automation.piec_png"
                                },
                                {
                                    "entity": "automation.piec_wlaczanie_rano"
                                },
                                {
                                    "entity": "automation.piec_lazienka_w_dzien"
                                },
                                {
                                    "entity": "automation.piec_lazienka_w_nocy"
                                },
                                {
                                    "entity": "automation.piec_slider"
                                },
                                {
                                    "entity": "automation.piec_reset_slider_to_0"
                                },
                                {
                                    "entity": "automation.piec_15"
                                },
                                {
                                    "entity": "automation.piec_lazienka"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "AU Piec",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "automation.cyrkulacja_20_00"
                                },
                                {
                                    "entity": "automation.cyrkulacja_6_00_pn_pt"
                                },
                                {
                                    "entity": "automation.cyrkulacja_7_00_8_00_30_sb_nd"
                                },
                                {
                                    "entity": "automation.cyrkulacja_alarm_off"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "AU Cyrkulacja",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "automation.wentylator_lazienka_09_30"
                                },
                                {
                                    "entity": "automation.wentylator_lazienka_gora_09_30"
                                },
                                {
                                    "entity": "automation.wentylator_piwnica_09_30"
                                },
                                {
                                    "entity": "automation.wentylator_lazienka_00_30"
                                },
                                {
                                    "entity": "automation.wentylator_lazienka_gora_00_30"
                                },
                                {
                                    "entity": "automation.wentylator_piwnica_00_30"
                                },
                                {
                                    "entity": "automation.wentylator_wc"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "AU Wentylator",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "automation.satel_alarm"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "AU Satel",
                            "type": "entities"
                        }
                    ],
                    "path": "au",
                    "title": "AU"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "cards": [
                                {
                                    "entities": [
                                        {
                                            "entity": "sensor.airly_quality"
                                        },
                                        {
                                            "entity": "sensor.airly_level"
                                        },
                                        {
                                            "entity": "sensor.airly_description"
                                        },
                                        {
                                            "entity": "sensor.airly_temperature"
                                        },
                                        {
                                            "entity": "sensor.airly_humidity"
                                        },
                                        {
                                            "entity": "sensor.airly_pressure"
                                        },
                                        {
                                            "entity": "sensor.airly_pm1"
                                        },
                                        {
                                            "entity": "sensor.airly_pm25"
                                        },
                                        {
                                            "entity": "sensor.airly_pm10"
                                        }
                                    ],
                                    "title": "Airly",
                                    "type": "entities"
                                }
                            ],
                            "show_header_toggle": false,
                            "type": "vertical-stack"
                        },
                        {
                            "entity": "weather.dark_sky",
                            "name": " ",
                            "type": "custom:weather-card"
                        }
                    ],
                    "icon": "mdi:cloud",
                    "panel": false,
                    "title": "Pogoda"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "entities": [
                                {
                                    "entity": "input_number.bajki_timeout"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "cmd",
                            "type": "entities"
                        }
                    ],
                    "icon": "mdi:rocket"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "content": "Welcome to your **Lovelace UI**.  \n",
                            "title": "Lovelace",
                            "type": "markdown"
                        },
                        {
                            "cards": [
                                {
                                    "entity": "sensor.disk_use_percent",
                                    "max": 100,
                                    "min": 0,
                                    "name": "/",
                                    "severity": {
                                        "green": 30,
                                        "red": 80,
                                        "yellow": 60
                                    },
                                    "theme": "default",
                                    "type": "gauge",
                                    "unit": "%"
                                },
                                {
                                    "entity": "sensor.disk_use_percent_mnt_ssd",
                                    "max": 100,
                                    "min": 0,
                                    "name": "SSD",
                                    "severity": {
                                        "green": 0,
                                        "red": 0,
                                        "yellow": 0
                                    },
                                    "theme": "default",
                                    "type": "gauge",
                                    "unit": "%"
                                },
                                {
                                    "entity": "sensor.disk_use_percent_mnt_hdd",
                                    "max": 100,
                                    "min": 0,
                                    "name": "HDD",
                                    "severity": {
                                        "green": 0,
                                        "red": 0,
                                        "yellow": 0
                                    },
                                    "theme": "default",
                                    "type": "gauge",
                                    "unit": "%"
                                }
                            ],
                            "type": "horizontal-stack"
                        },
                        {
                            "entities": [
                                "sensor.zewnetrz",
                                "sensor.sypialnia",
                                "sensor.PNG",
                                "sensor.piec_CO_zasilanie"
                            ],
                            "title": "history-graph",
                            "type": "history-graph"
                        },
                        {
                            "entity": "light.tio1_vout3",
                            "type": "light"
                        },
                        {
                            "detail": 0,
                            "entity": "sensor.png",
                            "graph": "line",
                            "hours_to_show": 24,
                            "name": "PNG",
                            "type": "sensor"
                        },
                        {
                            "entity": "sensor.sypialnia",
                            "max": 100,
                            "min": 0,
                            "severity": {
                                "green": 0,
                                "red": 0,
                                "yellow": 0
                            },
                            "theme": "default",
                            "type": "gauge"
                        },
                        {
                            "aspect_ratio": "50%",
                            "type": "iframe",
                            "url": "http://www.mojapogoda.com/pogoda-na-swiecie/pogoda-lokalna/miasto/48X32/krakow.html"
                        },
                        {
                            "aspect_ratio": "70%",
                            "title": "Meteo",
                            "type": "iframe",
                            "url": "https://meteo.org.pl/img/um/krakow.png"
                        },
                        {
                            "pages": [
                                {
                                    "name": "Main",
                                    "path": "lovelace/0"
                                },
                                {
                                    "name": "Mobile",
                                    "path": "lovelace/mobile"
                                }
                            ],
                            "type": "custom:home-setter"
                        },
                        {
                            "detail": 0,
                            "entity": "sensor.wedzarka",
                            "graph": "line",
                            "hours_to_show": 4,
                            "name": "W\u0119dzarka",
                            "type": "sensor"
                        },
                        {
                            "entities": [
                                {
                                    "entity": "input_number.opwm1"
                                },
                                {
                                    "entity": "switch.tio1_out1"
                                }
                            ],
                            "show_header_toggle": false,
                            "title": "Test",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                "updater.updater"
                            ],
                            "show_header_toggle": true,
                            "title": "Update",
                            "type": "entities"
                        },
                        {
                            "entities": [
                                {
                                    "name": "Netdata",
                                    "type": "weblink",
                                    "url": "http://yogi:19999/"
                                }
                            ],
                            "title": "Link",
                            "type": "entities"
                        }
                    ],
                    "panel": false,
                    "path": "",
                    "title": "exx"
                },
                {
                    "badges": [],
                    "cards": [
                        {
                            "card": {
                                "show_header_toggle": false,
                                "title": "Update",
                                "type": "entities"
                            },
                            "filter": {
                                "include": [
                                    {
                                        "domain": "updater"
                                    },
                                    {
                                        "entity_id": "sensor.current_version"
                                    },
                                    {
                                        "entity_id": "updater.updater"
                                    }
                                ]
                            },
                            "type": "custom:monster-card"
                        },
                        {
                            "type": "custom:tracker-card"
                        }
                    ],
                    "title": "ADM"
                },
                {
                    "badges": [],
                    "cards": [],
                    "icon": "mdi:toggle-switch-off-outline",
                    "title": "switch"
                }
            ]
        }
    },
    "key": "lovelace",
    "version": 1
}

Check in your developer tools - states page.

My glances sensors show up as sensor.glances_disk_used_percent

So most likely change

to sensor.glances.disk_use_percent.

But to be sure have a look in the Check in your developer tools - states page. for the correct sensor name.

In developer tools - states I don’t have any glance sensor. Ctrl+F with glance has 0 results

OK so do you have sensor.disk_use_percent?

or is it disk_used_percent?

In fairness I am using glances as an addon. This with protection mode disable allows me to get information from the host machine.

Are you trying to connect to a remote node?

I have sensor.disk_use_percent, but it come from systemmonitor, if I turn this platform off, it doesn’t appear in the list of sensors

- platform: systemmonitor
  resources:
    - type: disk_use_percent
      arg: /
    - type: disk_use_percent
      arg: /mnt/ssd/

Yes, it is remote server, I can sucesfully get data with curl.

Is it possible to debug glance platform ? I enabled debug, but I don’t see any logs.

OK just went back up and looked at your original post.

You have the name option set.

So would you check if sensor.Server.disk_use_percent exits please?

I don’t have any sensor.Server.*

Is it bug in glances platform ?

Thanks. now as I don’t use the component then I will have to test it.
Unless anyone else can chime in are you OK to wait and I will set up a similar setup to yourself.

That should help to pinpoint your specific issue. Just a user trying to help is all!

Does your glances show up in your integrations?

1 Like

Have you tried removing the entry from your configuration yaml and adding it through integrations?

2 Likes

Could you explain how to add it through integrations?

Remove it from your config.yaml
Go to the COG and under server controls do a config check and a restart. Then go to the COG and choose integrations. Then click the plus sign and follow the prompts.

With integrations work correctly. Thak all :smile:
I see 19 items sensor.glances.*

Whether it is possible to display sensor.glances_disk_used_percent for diferent disks eg. for /mnt/sdd i /mnt/hdd ?