Replies: 1 comment
-
I saw the solution in one of the other issues, apologies. So remove the _0 and _1 from the value ID, then the message is received as an array and can be obtained by getting the elements of the array with examplearray[0] and examplearray[1]. Can be closed, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm finding the package very helpful! Using the guideline how to get custom values from the instantaneous values I compiled this for my Sunny boy 3.0 (See below). Most of the things work, except for the stuff specific for each input (A and B). I see that its also 15 characters instead of 13, could this be the issue? Thanks in advance for your help!
msg.payload={
"sma_config": {
"id": "1",
"values": {
"6380_40251E00_0": {
"name": "PowerA",
"divider": 1
},
"6380_40251E00_1": {
"name": "PowerB",
"divider": 1
},
"6380_40451F00_0": {
"name": "VoltageA",
"divider": 100
},
"6380_40451F00_1": {
"name": "VoltageB",
"divider": 100
},
"6380_40452100_0": {
"name": "CurrentA",
"divider": 1000
},
"6380_40452100_1": {
"name": "CurrentB",
"divider": 1000
},
"6100_40263F00": {
"name": "Power",
"divider": 1
},
"6100_40465300": {
"name": "Phase1Current",
"divider": 1000
},
"6100_00464800": {
"name": "Phase1Voltage",
"divider": 100
},
"6400_00260100": {
"name": "TotalYield",
"divider": 1
},
"6400_00262200": {
"name": "DailyYield",
"divider": 1
},
}
}
}
return msg;
Beta Was this translation helpful? Give feedback.
All reactions