Both decap-methods exist already, you just have to combine them ....
make_channel({
name = "Abertis PID 802",
input = {
"http://localhost:8001/1:0:1:70A:EA7E:0:CE42AAA:0:0:0:",
},
transform = {{
format = "pipe",
command = "/etc/astra/scripts/abertis 802",
}},
output = {...