Roborock S5max set carpet mode

Hello, I have a roborock S5Max that I’ve been using with OH via the MIIO binding for some time. I now want to control the “Carpet Boost” mode (boosting the suction to max when carpet is detected) via a rule.

I see that the carpet_mode channel shows this status:

I can toggle the mode on and off in the Mi Home app and see the status toggle between these two values:

  • [{“enable”:1,“current_integral”:450,“current_high”:500,“current_low”:400,“stall_time”:10}]
  • [{“enable”:0,“current_integral”:450,“current_high”:500,“current_low”:400,“stall_time”:10}]

I wrote a rule to attempt writing to this channel, but that does not work to toggle the mode and just gets gets overwritten the next time the binding updates this channel’s value.

Does anyone know if it is possible to enable/disable the Carpet Boost mode from openhab?