Error caused by sensor - platform: cpu-speed

----edit-----

small repost: still no solution to this, and nothing in the documents? What else to configure than

- platform: cpuspeed

Thanks,
Marius

----end edit----

Hi testing several available available Components i added the platform: cpuspeed to my sensor.yaml to my Hassio setup

Not really knowing what it does (that is, not seeing any feedback from the sensor), i did notice persistent errors in the log file.
Only the last line of these mentioned cpuspeed, the rest is not yet very recognizable for me.

Taking out the cpuspeed caused my log to be faultless, and resulting in a speedier startup.

Anyone with helpful suggestions what could be wrong with this platform: cpuspeed?

Blockquote
ERROR (MainThread) [homeassistant.components.sensor] Error on device update!
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 216, in async_add_entity
yield from entity.async_device_update(warning=False)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 309, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.6/asyncio/futures.py”, line 331, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/tasks.py”, line 244, in _wakeup
future.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 244, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/sensor/cpuspeed.py”, line 86, in update
self._state = round(float(self.info[‘hz_actual_raw’][0])/10
9, 2)
KeyError: ‘hz_actual_raw’
2017-10-30 15:36:59 ERROR (MainThread) [homeassistant.components.sensor] Error on device update!
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 216, in async_add_entity
yield from entity.async_device_update(warning=False)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 309, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/lib/python3.6/asyncio/futures.py”, line 331, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/tasks.py”, line 244, in _wakeup
future.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 244, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)

`
Cheers,
Marius

try this one: https://home-assistant.io/components/sensor.systemmonitor/

and add this to sensor.yaml

- platform: systemmonitor
    resources:
      - type: processor_use
1 Like

thanks,

i use that one too already.
Im still puzzled though why the cpuspeed platform won’t work?
cheers,
Marius