|
36 | 36 | #include "main.h" /* for getval() */ |
37 | 37 | #include "usb-common.h" |
38 | 38 |
|
39 | | -#define ARDUINO_HID_VERSION "Arduino HID 0.21" |
| 39 | +#define ARDUINO_HID_VERSION "Arduino HID 0.22" |
40 | 40 | /* FIXME: experimental flag to be put in upsdrv_info */ |
41 | 41 |
|
42 | 42 | /* Arduino */ |
@@ -110,6 +110,10 @@ static hid_info_t arduino_hid2nut[] = { |
110 | 110 | { "battery.charge.low", 0, 0, "UPS.PowerSummary.RemainingCapacityLimit", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL}, |
111 | 111 | { "battery.charge.warning", 0, 0, "UPS.PowerSummary.WarningCapacityLimit", NULL, "%.0f", HU_FLAG_SEMI_STATIC, NULL}, |
112 | 112 |
|
| 113 | + { "ups.load", 0, 0, "UPS.PowerSummary.PercentLoad", NULL, "%.0f", 0, NULL }, |
| 114 | + { "input.voltage", 0, 0, "UPS.PowerConverter.Input.[1].Voltage", NULL, "%.1f", 0, NULL }, |
| 115 | + { "output.voltage", 0, 0, "UPS.PowerConverter.Output.Voltage", NULL, "%.1f", 0, NULL }, |
| 116 | + |
113 | 117 | /* USB HID PresentStatus Flags |
114 | 118 | TODO: Parse these into battery.charger.status |
115 | 119 | */ |
|
0 commit comments