When i adding prediction entities to an entire section, like a :
slight_smile: strategy:
type: common-controls
title: Common controls
AND
In Strategy Dashboard, get this tip:
Error loading the section strategy:
[object Object]
how do i fix it?
When i adding prediction entities to an entire section, like a :
slight_smile: strategy:
type: common-controls
title: Common controls
AND
In Strategy Dashboard, get this tip:
Error loading the section strategy:
[object Object]
how do i fix it?
You are not getting a single value back, but instead a collection of values and HA have no idea how to show that.
Check your core logs for errors related to usage_prediction. There have been some issues reported, that will manifest in that being printed.
Error loading the section strategy:
[object Object]
LOG:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/usage_prediction/__init__.py", line 39, in ws_common_control
result = await get_cached_common_control(hass, connection.user.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/usage_prediction/__init__.py", line 79, in get_cached_common_control
predictions = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/usage_prediction/common_control.py", line 149, in async_predict_common_control
target_entity_ids := target.get("entity_id")
^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
Use your words!
yes,there is.
[140567731686912] Error handling message: Unknown error (unknown_error) ☁️ from 192.168.66.202 (Mozilla/5.0 (Linux; Android 15; 23116PN5BC Build/AQ3A.240627.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/140.0.7339.207 Mobile Safari/537.36 Home Assistant/2025.8.7-17352 (Android 15; 23116PN5BC))
[140567714227968] Error handling message: Unknown error (unknown_error) ☁️ from 127.0.0.1 (Mozilla/5.0 (Linux; Android 15; 23116PN5BC Build/AQ3A.240627.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/140.0.7339.207 Mobile Safari/537.36 Home Assistant/2025.8.7-17352 (Android 15; 23116PN5BC))
[140567711314496] Error handling message: Unknown error (unknown_error) ☁️ from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36)
[140567746054720] Error handling message: Unknown error (unknown_error) ☁️ from 192.168.66.201 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36)
[140567881067680] Error handling message: Unknown error (unknown_error) ☁️ from 192.168.66.201 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/usage_prediction/__init__.py", line 39, in ws_common_control
result = await get_cached_common_control(hass, connection.user.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/usage_prediction/__init__.py", line 79, in get_cached_common_control
predictions = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/usage_prediction/common_control.py", line 149, in async_predict_common_control
target_entity_ids := target.get("entity_id")
^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
But i don’t know how to fix it.
You don’t fix it, you post a bug report in the core repo (or check if it has already been reported), and one of the developers will fix it.
How do you “post a bug report in the core repo”