Updating 3-way switch automation

I have 3-way switch operation running successfully including the target of automation using the following MQTT construct in configuration.yaml

  - platform: mqtt
    name: "Exterior Lights"
    state_topic: "stat/tasmota_XXXXX/POWER1"
    command_topic: "cmnd/tasmota_XXXXX/EVENT"
    availability_topic: "tele/tasmota_XXXXX/LWT"
    qos: 0
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"

After a recent upgrade, I get the following warning

However, clicking on the “Documentation” link did not help me figure out what I should be doing.

Any help will be greatly appreciated.

I assume your current configuration is under the switch key, this needs moving to be under the mqtt:

from

switch:
  - platform: mqtt
    name: "Exterior Lights"
    state_topic: "stat/tasmota_XXXXX/POWER1"
      ...etc  

to

mqtt:
  switch:
    - name: "Exterior Lights"
      state_topic: "stat/tasmota_XXXXX/POWER1"
        ...etc

Thank you very much!

For some reason, the entities are no longer showing up. I wonder if I messed up by adding multiple switches using the following syntax:

mqtt:
  switch:
    - name: "Exterior Lights"
      state_topic: "stat/tasmota_XXXXX/POWER1"
        ...etc
    - name: "Interior Lights"
      state_topic: "stat/tasmota_YYYYY/POWER1"
        ...etc

The configuration looks correct and matches my working one. Did you get this working or is it still an issue?

I tried using a switch: subkey before every “- name” and that did it for me.

1 Like