it works with the color "transparent"
@startuml
box "device 1" #LightBlue
participant "input task" as p1
database "Storage" as s1
end box
box "device 2" #Aquamarine
participant "input task" as p2
database "Storage" as s2
end box
alt #transparent "if Condition 1 then"
[-> p1 ++ : trig
p1 -> p2 ++ : send(data)
p2 -> s2 ++: store(data)
s2 --> p2 -- : done
p2 --> p1 -- : ack
deactivate p1
else #blue "else"
[-> p1 ++ : trig
p1 -> s1 ++ : store(data)
s1 -> p1 -- : done
deactivate p1
end
@enduml