What's wrong with my MQTT syntax?

my Shelly was flashed with Tasmota and this is its MQTT:

config yml file looks like this and was working perfectly fine:

  - platform: mqtt
    name: "front door lock"
    command_topic: cmnd/door/power
    state_topic: stat/door/POWER
    availability_topic: tele/door/LWT
    qos: 1
    retain: false
    payload_on:  "ON"
    payload_off: "OFF"
    payload_available:  "Online"
    payload_not_available: "Offline"

now, i cant control via HA as seen here. everything was working fine before i updated the Core and HA OS.

There was a breaking change to the MQTT sensor configuration back in 2022.6
The - platform: mqtt is no longer valid and will need to change to something like this below…
I added this to my configuration.yaml

mqtt: 
  #certficate: auto
  sensor: !include_dir_merge_list _mqtt/sensor/
  binary_sensor: !include_dir_merge_list _mqtt/b_sensor/

I then placed the revised sensor config.yaml in the applicable /sensor/ directory
The new yaml would be something like this…

- name: "front door lock"
  command_topic: cmnd/door/power
  state_topic: stat/door/POWER
  availability_topic: tele/door/LWT
  qos: 1
  retain: false
  payload_on:  "ON"
  payload_off: "OFF"
  payload_available:  "Online"
  payload_not_available: "Offline"

Good Luck!

1 Like

happy to say after updating to even the more latest version of Core 2022.8.4, everything is working again. i didnt have to edit my config yml file. phewww…