Light goes red after power cycle

I have a sonoff light flashed with tasmota set up, but when there is a power cycle of the light (or it loses connection to the wifi), the light first goes to the correct color, but then suddenly turns red. On the light I have the following setup:
“PowerOnState”:3
“PowerRetain”:“ON”

in HA:

light: 
  - platform: mqtt
    name: "Office"
    command_topic: "cmnd/DEVb1/power"
    state_topic: "stat/DEVb1/POWER"
    rgb_state_topic: "stat/DEVb1/color"
    rgb_command_topic: "cmnd/DEVb1/color"
    brightness_state_topic: "stat/DEVb1/dimmer"
    brightness_command_topic: "cmnd/DEVb1/dimmer"
    color_temp_state_topic: "stat/DEVb1/CT"
    color_temp_command_topic: "cmnd/DEVb1/CT"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    retain: false
    unique_id: 'light.office'

I have also tested retain: true in HA, but that has no effect