That’s an unfortunate MQTT topic hierarchy.
I think you’re going to have to use a Design Pattern: Proxy Item and a Rule. I’d use the MQTT Action to publish to the right topic.
Assuming you are using the MQTT 2.x binding the Rule would look something like:
rule "Rollershutter"
when
Item Rollershutter_Proxy received command
then
val mqttActions = getActions("mqtt","mqtt:mosquitto:broker")
val topic = "broadlink/rollershutters/indoor/window1/"
var cmd = ""
switch(receivedCommand){
UP: cmd = "up"
DOWN: cmd = "down"
// and so on
}
mqttActions.publish(topic+cmd, "play")
end
I don’t know these devices so I’m making up the topic names and commands.