-
Notifications
You must be signed in to change notification settings - Fork 12
Clearer outputs for different field types in the CLI and in a JSON export #22
Description
It is difficult to understand why is not the same approach between raw_value and value ?
From my understanding raw_value is coming directly from mate3 "as is" without any conversion and value is after conversion, like "ready to use" ex. Case 3 with voltage. Which is good!
Now, when we are looking on Case 1 raw_value it is not "as is" and value is not "ready to use".
If I wanted to use JSON data, I would have expected something like that:
raw_value: 1
value: "Enabled"
Case 1
"enable_dhcp": {
"implemented": true,
"scale_factor": null,
"raw_value": "<enable_dhcp.DHCP Enabled: 1>",
"value": "<enable_dhcp.DHCP Enabled: 1>"
Case 2
"tcpip_address": {
"implemented": true,
"scale_factor": null,
"raw_value": "192.168.0.150",
"value": "192.168.0.150"
Case 3
"hbx_grid_connect_voltage": {
"implemented": true,
"scale_factor": -1,
"raw_value": 492,
"value": 49.2