The PICKUP and DUMP trolley states seem to be arriving too late (right before the following state), therefore the led doesn't stay turned ON for long.
Pickup action lasting 5 seconds. The Pickup state is the following:
State state_pickup {
updateResource [# "transporttrolley(PICKUP)" #]
println("[TransportTrolley] Picking up the load of $WasteType...")
[# wasteservice.Utils.simulateAction(WasteLoad) #]
println("[TransportTrolley] Pickup completed.")
replyTo deposit with pickupcompleted: pickupcompleted(_) caller== wasteservice
}
Goto state_move_to_box
As a consequence we never see the led being ON during pickups and dumps: those 2 actions appears to be lasting too little from the Raspberry perspective.