-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to write fields with mate3 cli? #38
Comments
Thanks for looking into this and the PR @rrooggiieerr - I'll try to look in the next few days. If I remember correctly, what you want is something like this
or (possibly equivalently)
Just a note though - as per the readme, it's encouraged to use the Python API for writing if you can, as this one isn't great given the
I'm not sure - what errors are you getting? If the first one fails due to Generally, if you've got ideas to make it better, let me know (or submit a PR!) - the main problem is there's just such a large number of different fields and devices, and when coupled with enums, values just get pretty long. |
@kodonnell I'm aware of the like
The argument to the CLI to set a field would then become
|
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
inmate3/main.py
and useRadianInverterConfigurationModel.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?The text was updated successfully, but these errors were encountered: