I have the following in configuration.yml:
switch:
- platform: mqtt
name: "Alert Delays"
state_topic: "nfc/alert_delays"
command_topic: "nfc/alert_delays"
qos: 1
payload_on: "yes"
payload_off: "no"
retain: true
- platform: mqtt
name: "Vacation"
state_topic: "nfc/vacation"
command_topic: "nfc/vacation"
qos: 1
payload_on: "yes"
payload_off: "no"
retain: true
However, only one switch shows up in the dashboard. Sometimes it’s the first one, after a restart it can be the second one. Seems one random gets picked.