Lights go off after 5 minutes

Hi, I’m running a Sonoff MINI R2 decoupled from the light switch, with SetOption114 and SwitchMode15. This means that when the light switch is pressed, it only sends a MQTT message and does not adjust the power output to the light, so that the lights are never without p power. I’m running the following automation in HA.

alias: Toggle keukenlamp
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.switchtasmotakeuken
condition: []
action:
  - service: light.toggle
    data: {}
    target:
      entity_id: light.keuken_wand
mode: single

For some reason, after 5 minutes, the light turns back off again when it’s on. I see this in the Tasmota console.

06:36:20.618 MQT: tele/tasmota_E20D28/STATE = {"Time":"2022-11-20T06:36:20","Uptime":"1T11:00:16","UptimeSec":126016,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"Network","BSSId":"4E:AF:97:F0:A1:F9","Channel":2,"Mode":"11n","RSSI":90,"Signal":-55,"LinkCount":1,"Downtime":"0T00:00:04"}}
06:36:20.625 MQT: tele/tasmota_E20D28/SENSOR = {"Time":"2022-11-20T06:36:20","Switch1":"OFF"}

What’s the thing I’m missing?

What I want: to be able to control the lights by HA ánd by pressing the switch.