Systemmonitor - IndexError: list index out of range

When I start I get this message:

Log Details (ERROR)
Thu Dec 07 2017 13:04:34 GMT+0100 (CET)

Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 217, in async_add_entity
    yield from entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/systemmonitor.py", line 170, in update
    self._state = addresses[self.argument][IF_ADDRS[self.type]][1]
IndexError: list index out of range

How can I find out why this message appears ?

Can you paste your system monitor config here please? (please use the code blocks to format the code)

@keithh666
I hope it is this configuration:

- platform: time_date
  display_options:
    - 'time'
    - 'date'
	
## cpu speed raspberry device
- platform: cpuspeed

## system monitor raspberry device
- platform: systemmonitor
  resources:
  - type: disk_use_percent
    arg: /
  - type: disk_use_percent
    arg: /var/log
  - type: memory_use_percent
  - type: memory_use
  - type: memory_free
  - type: processor_use
  - type: swap_use_percent
  - type: swap_use
  - type: swap_free
  - type: last_boot
  - type: since_last_boot
    ## LAN Adapter
  - type: network_in
    arg: eth0
  - type: network_out
    arg: eth0
  - type: packets_in
    arg: eth0
  - type: packets_out
    arg: eth0
  - type: ipv4_address
    arg: eth0
  - type: ipv6_address
    arg: eth0
    ## WLAN Adapter   
  - type: network_in
    arg: wlan0
  - type: network_out
    arg: wlan0
  - type: packets_in
    arg: wlan0
  - type: packets_out
    arg: wlan0
  - type: ipv4_address
    arg: wlan0
  - type: ipv6_address
    arg: wlan0

  - type: disk_use_percent
    arg: /
  - type: disk_use_percent
    arg: /var/log
  - type: memory_use_percent
  - type: memory_use
  - type: memory_free
  - type: processor_use
  - type: swap_use_percent
  - type: swap_use
  - type: swap_free
  - type: last_boot
  - type: since_last_boot
    ## LAN Adapter
  - type: network_in
    arg: eth0
  - type: network_out
    arg: eth0
  - type: packets_in
    arg: eth0
  - type: packets_out
    arg: eth0
  - type: ipv4_address
    arg: eth0
  - type: ipv6_address
    arg: eth0
    ## WLAN Adapter   
  - type: network_in
    arg: wlan0
  - type: network_out
    arg: wlan0
  - type: packets_in
    arg: wlan0
  - type: packets_out
    arg: wlan0
  - type: ipv4_address
    arg: wlan0
  - type: ipv6_address
    arg: wlan0

Needs indenting by 2 spaces, hopefully that will fix it :slight_smile:

Negativ, i have 2 Rasperry running, same configuration. One is working w/o errors.
The 2nd shows this errors.

I don’t uses systemmonitor, but just looking at this line of code it looks like it is a problem with the number of IP addresses on this machine. Is it running both IP4 and IP6?

Running ifconfig -a on each machine might reveal some differences.

Thank you, it was the IPV6 address, this is not enabled on the second Raspberry. I have removed these from the configuration and now the application starts without the error.

1 Like