No module named 'homeassistant.components.trend.sensor'

Not sure why I am getting this message( No module named ‘homeassistant.components.trend.sensor’). I would have thought if we are running hassIO all module for default sensor should be installed, after a bit go gaoling it looks like I need to install libatlas-base-dev but not sure how to do this.

Thanks

Dave

can you post the full error please (from home-assitant.log)

Platform error sensor.trend - No module named 'homeassistant.components.trend.sensor'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 192, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 610, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.trend - No module named 'homeassistant.components.trend.sensor'
Platform error sensor.trend - No module named 'homeassistant.components.trend.sensor'

System Health

version: core-2022.3.2
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.9
os_name: Linux
os_version: 5.10.98
arch: aarch64
timezone: Europe/London


GitHub API: ok
Github API Calls Remaining: 4956
Installed Version: 1.22.0
Stage: running
Available Repositories: 1006
Downloaded Repositories: 7


logged_in: true
subscription_expiration: 18 March 2022, 00:00
relayer_connected: true
remote_enabled: true
remote_connected: true
alexa_enabled: true
google_enabled: false
remote_server: eu-west-2-3.ui.nabu.casa
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok


host_os: Home Assistant OS 7.4
update_channel: stable
supervisor_version: supervisor-2022.01.1
docker_version: 20.10.9
disk_total: 110.0 GB
disk_used: 24.1 GB
healthy: true
supported: true
board: odroid-n2
supervisor_api: ok
version_api: ok
installed_addons: Check Home Assistant configuration (3.10.0), File editor (5.3.3), Mosquitto broker (6.0.1), CEC Scanner (3.0), Traccar (0.15.0), Terminal & SSH (9.3.0), Samba share (9.5.1), Z-Wave JS (0.1.54), OpenZWave (0.9.1), SQLite Web (3.2.1), FTP (4.4.1), Home Assistant Google Drive Backup (0.105.2), Studio Code Server (4.1.0), InfluxDB (4.3.0), Grafana (7.4.1), Node-RED (11.0.4)


dashboards: 3
resources: 2
views: 10
mode: storage

You put the trend sensor in the wrong area of your configuration. Can you post the contents of your binary_sensor section and your sensor section?

And the idiot of the week goes to Dave, you were correct petro. I had put the configure in the wrong place. Many thanks for the assist

Dave

1 Like