-
Notifications
You must be signed in to change notification settings - Fork 12
How to write fields with mate3 cli? #38
Description
Hi! I now got the mate3 cli working after some debugging and fixing issues in the code (see my pull request with the modifications I did)
It's not yet entirely clear how can I should write values to the mate3 using the mate3 cli
I'm trying to switch on the AUX port on our secondary inverter
This is what I've got:
mate3 write --set single_phase_radian_inverters[2].config.aux_control=<what goes here?> --host <ip>
The code does an eval() on the provided value, but it's not entirely clear what should I use as the value?
When I import from mate3.sunspec.models import RadianInverterConfigurationModel in mate3/main.py and use RadianInverterConfigurationModel.aux_control.options.On I can switch on the AUX port. Are there just some imports missing and is the way it was intended to work, or should I do something else?