unmesh59
(Unmesh Agarwala)
1
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.
woodmj74
(Mike Wood)
2
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
unmesh59
(Unmesh Agarwala)
4
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
woodmj74
(Mike Wood)
5
The configuration looks correct and matches my working one. Did you get this working or is it still an issue?
unmesh59
(Unmesh Agarwala)
6
I tried using a switch: subkey before every “- name” and that did it for me.
1 Like