Tasmota and MQTT switches problems

Platform information:
    Hardware: Paspi 4
    OS: Openhabian
    Java Runtime Environment: Zulu 11
    openHAB version: 3.4.2
Issue of the topic: Tasmota and MQTT switches problems

So, now I tried to get my delock power switches to work with MQTT (instead of wemo)

The MQTT bridge and the device are online, but the power switch doesn’t work.
Here’s the code:

UID: mqtt:topic:7dd12da045:3255577182
label: "PWR: TV"
thingTypeUID: mqtt:topic
configuration:
  payloadNotAvailable: Offline
  availabilityTopic: tele/TV/LWT
  payloadAvailable: Online
bridgeUID: mqtt:broker:7dd12da045
location: Rockito
channels:
  - id: TVMQTT
    channelTypeUID: mqtt:switch
    label: "SWITCH: TV"
    description: ""
    configuration:
      commandTopic: cmnd/TV/POWER
      stateTopic: stat/TV/POWER
      off: OFF
      on: ON

And here the Tasmota settings:

The fact that the device is online means that it successfully connected to the broker. The fact that it does not operate implies that it does not receive commands or that the payload of the command is not the right one.
If you do not see its state then the tele topic is wrong.

Are you sure that the switch receives the right command, or receives any command at all? What does the console on the tasmota show?
Is the tele topic on the console equal to what you have in your configuration? Are you able to operate the switch with mosquitto_pub command?

Your MQTT settings show a, user TV and a password, are those the user and password of your MQTT broker?

Use https://mqtt-explorer.com/ to observe the messages on the MQTT bus.

Your MQTT settings show a, user TV and a password, are those the user and password of your MQTT broker?

Thank you very much, the problem was the user name! I don’t know why, but it wasn’t the user name of the MQTT broker. Now it’s working! :grinning: