Powerstream - set AC output value #130
bogdancs92
started this conversation in
General
Replies: 1 comment 1 reply
-
This would be a perfect solution for me too! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I found this function :
// Einstellen der Einspeiseleistung
function setAC(asn, Value) {
if (!ConfigData.Regulation) {
//return
}
let updatedMusterSetAC = musterSetAC;
if (Value <= -1) {
delete updatedMusterSetAC.item.meta;
delete updatedMusterSetAC.item.ValByte;
}
else {
updatedMusterSetAC.header.pdata.value = Value
updatedMusterSetAC.header.dataLen = getVarintByteSize(Value)
}
updatedMusterSetAC.header.seq = Date.now()
updatedMusterSetAC.header.deviceSn = asn
//log(JSON.stringify(updatedMusterSetAC))
setState(ConfigData.statesPrefix + '.app_' + mqttDaten.UserID + '_' + asn + '_thing_property_set.setAC', Value.toString(), true)
SendProto(JSON.stringify(updatedMusterSetAC), '/app/' + mqttDaten.UserID + '/' + asn + '/thing/property/set');
}
1692266227129-ecoflow-connector_v112.js.zip
from the script provided on this page https://forum.iobroker.net/topic/66743/ecoflow-connector-script-zur-dynamischen-leistungsanpassung/2 for IOBrocker...
is it possible to adapt it ?
Beta Was this translation helpful? Give feedback.
All reactions