Updating command_line sensor took longer than the scheduled update interval

Tags: #<Tag:0x00007f78011813b8> #<Tag:0x00007f78011811d8>

Hello!
Since a few days I receive this message in my log files:
Updating command_line sensor took longer than the scheduled update interval
… and my CPU temperatur sensor does not update anymore…

sensor:
	- platform: command_line
	  name: CPU Temperature
	  command: "cat /sys/class/thermal/thermal_zone0/temp"
	  unit_of_measurement: "°C"
	  scan_interval: 120
	  value_template: '{{ value | multiply(0.001) | round(1) }}'

(I’m currently on hassos 3.10 on Raspberry Pi 4 with 4GB RAM)
Thanks for any recommendations :slight_smile:
Albert

Did you ever get to resolve this?

1 Like

Hi,

I have reinstalled my home-assistance in the meantime.
In the current config I got rid of the update interval - the cpu temp does update regulary (but eventually not every 120 seconds - but the error-message disapeared

sensor:
	- platform: command_line
	  name: CPU Temp
	  command: "cat /sys/class/thermal/thermal_zone0/temp"
	  unit_of_measurement: "°C"
	  value_template: '{{ value | multiply(0.001) | round(1) }}'

I’m on hassos 3.12 / Core 0.107.6