MQTT entities not available

Hi All

I recently setup a new Pi4 with
Home Assistant

  • Core2023.11.2
  • Supervisor2023.11.3
  • Operating System11.1
  • Frontend20231030.2

I have Mosquitto broker running and communication with 3 entities although all entities are not available. BTW they are sonoff devices flashed with Tasmota.

I can send commands in the broker to turn them on or off quite easily so as I am new to this latest version I thought I should reach out for some advice.

It’s highly likely I have botched the configuration as again this version is all new to me.

NOTE: My long running version is Home Assistant 2021.4.3
Decided it was about time to try living on the edge again.

Below is my MQTT config

#START MQTT Switches
#
mqtt:
  - switch:
      - unique_id: tank_light
        name: "Tank Light"
        state_topic: "stat/sonoff36/POWER"
        command_topic: "cmnd/sonoff36/POWER"
        availability:
          - topic: "tele/sonoff36/LWT"
        qos: 0
        payload_on: "ON"
        payload_off: "OFF"
        payload_available: "Online"
        payload_not_available: "Offline"
        retain: true
      - unique_id: side_1_light
        name: "Side 1 Light"
        state_topic: "stat/sonoff37/POWER"
        command_topic: "cmnd/sonoff37/POWER"
        availability:
          - topic: "tele/sonoff37/LWT"
        qos: 0
        payload_on: "ON"
        payload_off: "OFF"
        payload_available: "Online"
        payload_not_available: "Offline"
        retain: true
      - unique_id: garage_charger
        name: "Garage Charger"
        state_topic: "stat/sonoff28/POWER"
        command_topic: "cmnd/sonoff28/POWER"
        availability:
          - topic: "tele/sonoff28/LWT"
        qos: 0
        payload_on: "ON"
        payload_off: "OFF"
        payload_available: "Online"
        payload_not_available: "Offline"
        retain: true

Cheers

Instead of manually configuring them, I suggest you install the Tasmota integration which will discover and configure them automatically. If you choose to do that, be sure to first remove the manual configuration.

Thanks for that 123 Taras
Unfortunately there is this: “Tasmota devices flashed with version 9.2, or later”
I have a mix of versions which I would have to reflash to work with the Tasmota Integration.
I do already have that installed and it has not found any to date.

Is there no way to get them working using YAML config?

Cheers!

Upgrade them to a recent version and they’ll be discovered by the Tasmota integration.

There is but I was offering you the easiest way to configure your Tasmotized devices.

Thanks again for the speedy reply.

I appreciate that but would add that the degree of difficulty in physically doing the upgrades here is a consideration. I’ll see how I go and report back.

Cheers!

If their firmware predates v9.1 then, yes, you’ll have to follow a specific upgrade path.