MQTT stopped working

Hello everyone

I´m just surprised again by MQTT. I just upgraded the firmware on all my sonoff devices (using Theo Arendst´s Tasmota), and all of them stopped working with HA (Hass.io).

With ths configuration:

- platform: mqtt
  name: "Reflector Patio"
  command_topic: "patio/sonoff3/cmnd/power"
  state_topic: "patio/sonoff3/POWER"
  qos: 0
  optimistic: false
  payload_on: "ON"
  payload_off: "OFF"
  retain: true

I get, whenever I try the GUI slider:

17:35:46 MQT: patio/sonoff3/RESULT = {"POWER1":"ON"}
17:35:46 MQT: patio/sonoff3/POWER1 = ON

Config in Tasmota´s firmware is:

MQTT Host	192.168.1.10
MQTT Port	1883
MQTT Client &
Fallback Topic	DVES_07B2D5
MQTT User	tito1
MQTT Topic	sonoff3
MQTT Group Topic	sonoffs
MQTT Full Topic	patio/sonoff3/cmnd/

And everything was working great up until the upgrade. Now, the light lights up, but the state doesn´t change, and can´t be turned off.

Pretty please help.

Look different to the console message in tasmota
Power and power1

OK, just solved it (ish).

Tasmota´s latest firmware seems to break MQTT, giving a JSON parsing error in HA. Solution was pretty simple: donwngrade to a minimal image and then the complete one via web (to version 5.12, (that version worked for me).

Thanks all.

I’m running 5.13 all good

Update from 5.13.1 to 5.14.0 changed the stat and cmnd topic from POWER to POWER1.

That’s a Breaking change in Tasmota :slightly_smiling_face:

https://github.com/arendst/Sonoff-Tasmota/issues/2760

1 Like

I didn´t notice that. So just adding a “1” to all the configs should solve the issue, right?

Ok, just got answered in Theo´s forum.

There´s a new feature that needs to be adressed, for someone a breaking change.

Just type:

Setoption26 0

in console to get the POWER statement back (as opossed to POWER1)

1 Like

OK this is so weird!!!

I saw this before I updated my Tasmota to 5.14.0 (I was on 5.12) and edited my configuration.yaml in anticipation and changed power to power1 and then it didn’t work when I restarted Home Assistant!! I didn’t screw with Setoption26 or anything like that. Restarted Home Assistant again with it set back to power and it is all working again.

switch:
  - platform: mqtt
    name: "Toothbrush1"
    command_topic: "cmnd/sonoff1/power"
    state_topic: "stat/sonoff1/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: true
  - platform: mqtt
    name: "Coffee Maker"
    command_topic: "cmnd/sonoff2/power"
    state_topic: "stat/sonoff2/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: true

I did also update to 0.70.0b0 as well but I don’t understand why this is still working? I had previously used the PowerRetain 1 command but I’m just confused at this point. Anyway it’s working.