switch:
- platform: mqtt
name: "sonoffPowR2"
state_topic: "stat/sonoffPow2/POWER"
command_topic: "cmnd/sonoffPow2/power"
availability_topic: "tele/sonoffPow2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
ja alterei para retain: false
mas continua igual…
esta config já esta assim a bastante tempo e sempre funcionou bem