Thanks @Waly_de for your work.
Based on your file I developed a node.js application https://github.com/bogdancs92/ecoflow-powerstream-nodejs (cause I don't have a iotbroker).
It changes the PowerStream output value. It works.
and now I understand also how to change the mode:
function updateMode(_value) {
const lastPart = "setPrio";
const matchedEntry = writeables.find((entry) => entry.name === lastPart);
if (matchedEntry) {
if (matchedEntry.Typ == "PS") {
updatedMuster = JSON.parse(JSON.stringify(musterSetAC));
if (Number(obj.state.val) <= -1) {
delete updatedMuster.item.meta;
delete updatedMuster.item.ValByte;
}
else {
updatedMuster.header.pdata[matchedEntry.ValueName] = Number(_value)
updatedMuster.header.dataLen = getVarintByteSize(Number(_value))
}
updatedMuster.header.cmdId = matchedEntry.id
updatedMuster.header.cmdFunc = matchedEntry.cmdFunc || 20
updatedMuster.header.seq = Date.now()
updatedMuster.header.deviceSn = asn
//log(JSON.stringify(updatedMuster))
SendProto(JSON.stringify(updatedMuster), '/app/' + mqttDaten.UserID + '/' + asn + '/thing/property/set');
}
}
}
Thanks and have a nice day