Hello.
Same thing here with the same setup.
GPU Temperature and CPU Clock sensor templates fail.
Logger: homeassistant.components.command_line.utils
Source: components/command_line/utils.py:54
Integration: Command Line (documentation, issues)
First occurred: 20:24:25 (2 occurrences)
Last logged: 20:24:26
Command failed (with return code 127): /opt/vc/bin/vcgencmd measure_temp
Command failed (with return code 127): /opt/vc/bin/vcgencmd measure_clock arm
Logger: homeassistant.components.sensor
Source: helpers/template.py:1971
Integration: Sensor (documentation, issues)
First occurred: 20:24:26 (1 occurrences)
Last logged: 20:24:26
Error adding entities for domain sensor with platform command_line
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 471, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 749, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 849, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 139, in async_added_to_hass
await self._update_entity_state(None)
File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 163, in _update_entity_state
await self._async_update()
File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 193, in _async_update
self._value_template.async_render_with_possible_json_value(
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 735, in async_render_with_possible_json_value
return _render_with_context(self.template, compiled, **variables).strip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2179, in _render_with_context
return template.render(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1971, in regex_findall_index
return regex_findall(value, find, ignorecase)[index]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
IndexError: list index out of range
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:585
Integration: Sensor (documentation, issues)
First occurred: 20:24:26 (2 occurrences)
Last logged: 20:24:26
Error adding entities for domain sensor with platform command_line
Error while setting up command_line platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 583, in state
numerical_value = float(value) # type:ignore[arg-type]
^^^^^^^^^^^^
ValueError: could not convert string to float: 'None'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 471, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 749, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 849, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 139, in async_added_to_hass
await self._update_entity_state(None)
File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 163, in _update_entity_state
await self._async_update()
File "/usr/src/homeassistant/homeassistant/components/command_line/sensor.py", line 201, in _async_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 590, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in _async_write_ha_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 585, in state
raise ValueError(
ValueError: Sensor sensor.gpu_temperature has device class 'None', state class 'None' unit '°C' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'None' (<class 'str'>)
Regards!!!