MQTT Light switch does not work correctly

After updating to latest version system crashed and after restoring from backup and updating again all works except mqtt light switches (tasmotized sonoffs mostly + shelly1) the weird thing is that shelly2 works perfectly.
The problem is that switch always stays in off state. If I switch to On it will light on but then goes back to off state and that result in stuck on light. if I run ‘OFF’ comand topic to related device it will turn off light. also light.turn_off works. Logs show nothing unusual
` - platform: mqtt
name: Main Light
command_topic: shellies/shellyswitch-32C243/relay/0/command
state_topic: shellies/shellyswitch-32C243/relay/0
payload_on: “on”
payload_off: “off”
retain: false
qos: 1

  • platform: mqtt
    name: Dinning Light
    command_topic: shellies/shellyswitch-32C243/relay/1/command
    state_topic: shellies/shellyswitch-32C243/relay/1
    payload_on: “on”
    payload_off: “off”
    retain: false
    qos: 1
  • platform: mqtt
    name: Kids Room
    command_topic: shellies/shelly1-4A5895/relay/0/command
    state_topic: shellies/shelly1-4A5895/relay/0/
    payload_on: “on”
    payload_off: “off”
    retain: false
    qos: 1`

First off, you need to make sure you properly format your code for the forum see the top of the page.

But to your problem I would run a MQQT sniffer program MQTTFx or MQTTexplorer and watch the MQTT messages that are sent around when you switch your lights. Then compare those to the messages in your configuration.