MQTT Sensors Discovered But Not Available

I have loaded the script linked below on a Raspberry Pi 3. It monitors various items on the Pi and sends the data to HA. I had a bit of trouble getting it working, mostly due to my unfamiliarity with MQTT.

After getting it to work the other day, I noticed the next day the sensors showed Unavailable and have shown that ever since. Even after removing them and having them be auto discovered shortly after removing them. I have installed MQTT Explorer and connected the built-in HA MQTT broker and can see the messages coming from the Pi every 5 minutes as configured.

Any ideas?

Thanks
Rick

I found this in the logs. Is there anyway to correct this issue?

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:554
Integration: Sensor (documentation, issues)
First occurred: 6:24:07 PM (5 occurrences)
Last logged: 6:24:07 PM

Platform mqtt does not generate unique IDs. ID RPi-b827ebMond09f27_monitor already exists - ignoring sensor.rpi_monitor_raspberrypi
Platform mqtt does not generate unique IDs. ID RPi-b827ebMond09f27_temperature already exists - ignoring sensor.rpi_temp_raspberrypi
Platform mqtt does not generate unique IDs. ID RPi-b827ebMond09f27_disk_used already exists - ignoring sensor.rpi_disk_used_raspberrypi
Platform mqtt does not generate unique IDs. ID RPi-b827ebMond09f27_cpu_load already exists - ignoring sensor.rpi_cpu_use_raspberrypi
Platform mqtt does not generate unique IDs. ID RPi-b827ebMond09f27_mem_used already exists - ignoring sensor.rpi_mem_used_raspberrypi


Started receiving these error messages last night. Any ideas where to start looking?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/mqtt/client.py:116
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: April 5, 2023 at 9:57:06 PM (8 occurrences)
Last logged: 6:31:37 AM

[140060801713488] Cannot publish to topic 'cmnd/tasmota_9FEE06/Power1', MQTT is not enabled
[140061376775216] Cannot publish to topic 'cmnd/tasmota_9FEE06/Power1', MQTT is not enabled
[140060882551712] Cannot publish to topic 'cmnd/tasmota_9FEE06/Power1', MQTT is not enabled
[140061323920288] Cannot publish to topic 'cmnd/tasmota_9FEE06/Power1', MQTT is not enabled
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1820, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1857, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 216, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 977, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/tasmota/switch.py", line 65, in async_turn_off
    await self._tasmota_entity.set_state(False)
  File "/usr/local/lib/python3.10/site-packages/hatasmota/relay.py", line 123, in set_state
    await self._mqtt_client.publish(
  File "/usr/local/lib/python3.10/site-packages/hatasmota/mqtt.py", line 81, in publish
    return await self._publish(topic, payload, qos, retain)
  File "/usr/src/homeassistant/homeassistant/components/tasmota/__init__.py", line 53, in _publish
    await mqtt.async_publish(hass, topic, payload, qos, retain)
  File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 116, in async_publish
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot publish to topic 'cmnd/tasmota_9FEE06/Power1', MQTT is not enabled