Sensors not updating from MQTT as frequently as they should

I run python scripts on a few Raspberry PI which report Temperature (among other things) back to HA. These scripts run every 30 seconds. I have these sensors manually defined in the configuration.yaml.

Yesterday I updated to 2022.4.7 and also updated Mosquitto Broker, prior to this it was all working fine.

Now however, HA does not seem to be updating the values of the sensors in a timely fashion, despite the values changes, it can go from a few minutes to hours before the new values are registered.

I have checked the HA log and MQTT log and I can’t see any errors in there.

I have tried restoring to a backup via the GUI interface but that doesnt seem to work (Click restore and nothing happens).

Just done another restart while writing this and now the entities just give this error…


From the configuration.yaml (They are all setup similar to this)


  • platform: mqtt

    name: “Sully Outside Temperature”

    state_topic: “sully/temperature”

    unit_of_measurement: “°C”

I have different Raspberry Pi sensors (running the same scripts) all having the same issue.

I have included a copy and paste of the info screen so you can see how I have it setup.

Very frustrating this has happened so I will apreciate any help please.

System Health

version: core-2022.4.7
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.108
arch: x86_64
timezone: Europe/London

GitHub API: ok
GitHub Content: ok
GitHub Web: ok
GitHub API Calls Remaining: 4822
Installed Version: 1.24.5
Stage: running
Available Repositories: 1099
Downloaded Repositories: 28

logged_in: true
subscription_expiration: May 18, 2022, 1:00 AM
relayer_connected: true
remote_enabled: true
remote_connected: true
alexa_enabled: true
google_enabled: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok

host_os: Home Assistant OS 7.6
update_channel: stable
supervisor_version: supervisor-2022.04.0
docker_version: 20.10.9
disk_total: 57.5 GB
disk_used: 9.9 GB
healthy: true
supported: true
board: generic-x86-64
supervisor_api: ok
version_api: ok
installed_addons: Mosquitto broker (6.0.2), AirSonos (3.3.0), Node-RED (11.1.2), motionEye (0.18.0), Studio Code Server (5.0.0), File editor (5.3.3), Terminal & SSH (9.4.0)

dashboards: 3
resources: 21
views: 5
mode: storage