I there
I am having trouble with a write block I need to send to a Schneider energy meter.
The meter is working
The binding is in place
I can see data from poller function and bind it to meaningful items, which seem real world (correct)
I can not reset the meter remotely with the function stated in the manual
I can write to a “command” register address the correct command number, as I can see the register that acknowledges the command and the register that returns an error: a “3002” which means the command block has invalid parameters.
The command is “2020” to register 5250, and that’s the only thing needed. But the command block has seven other registers (5251-5257) which are used to arguments and I believe they all must be zeroed.
So the commend aknowledged is “2020”, but with the error “3002 = Invalid number of parameters”
So I need a way to write in the same command multiple registers, all UInt16.
I read about the json write. It would be something like this, I believe:
[
{
"functionCode": 16,
"address": 5249,
"value": [2020, 0, 0, 0, 0, 0, 0, 0]
"maxTries": 3
}
]
But how would I send this to device?
#A data thing with a function - how to make this into a function to rewrite any string/number to this output?
#A rule with code output - how to integrate this into it?
I busted myself searching and trying and, for the most part, the binding is working, please help me with this bit.
Thanks!