Small updates to MGE HID (outlets)#3342
Merged
jimklimov merged 4 commits intonetworkupstools:masterfrom Mar 12, 2026
Merged
Conversation
…ent typo Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… a reusable goal; apply for faster `make check(-recursive)` and `install(-recursive)` [networkupstools#3039] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
|
❌ Build nut 2.8.4.4303-master failed (commit e4326135d8 by @jimklimov) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seems there was a typo in outlet indexing. Just in case, added handlers for another group (if some device would serve it).
@arnaudquette-eaton : can you please revise that the updated comments are not misleading, esp. that "outlet.something" may refer to either "main" outlet on an UPS with many groups, or a sort of summary or "the only" outlet on others. Especially about "summary" - is it true, or is my memory about daisychains misleading me?
Also, on an Ellipse ECO 650, I could not switch outlets on/off (tried making e.g.
"UPS.OutletSystem.Outlet.[2].PresentStatus.SwitchOn/Off"writeable, it succeeded as far as the USB report sending went, but no practical effect); similar with beeper - never got activated via command. Is this expected (the device is not THAT manageable) or something wrong on NUT side?Just in case, added mappings for a third group (
...Outlet.[4].*) as a copy-paste of the previous lines; no idea if there are any devices with that many distinct outlets/groups though?All in all, there are several unhandled values that the device claims to report:
11.906937 [D1] analyze_mapping_usage: 94 items are present in the report descriptor from HID UPS, but 42 of them were completely not used by name via the mapping defined in the selected NUT subdriver
MGE HID 1.58: UPS.Flow.[4].FlowID (Feature), UPS.HistorySystem.Event.[1].Code (Feature), UPS.HistorySystem.Event.[1].EventID (Feature), UPS.HistorySystem.Event.[2].Code (Feature), UPS.HistorySystem.Event.
[2].EventID (Feature), UPS.HistorySystem.Event.[3].Code (Feature), UPS.HistorySystem.Event.[3].EventID (Feature), UPS.HistorySystem.Event.[4].Code (Feature), UPS.HistorySystem.Event.[4].EventID (Feature),
UPS.HistorySystem.Event.[5].Code (Feature), UPS.HistorySystem.Event.[5].EventID (Feature), UPS.OutletSystem.Outlet.[1].FlowID (Feature), UPS.OutletSystem.Outlet.[2].FlowID (Feature), UPS.OutletSystem.Outle
t.[2].PresentStatus.Present (Feature), UPS.OutletSystem.Outlet.[2].PresentStatus.Present (Input), UPS.OutletSystem.Outlet.[3].FlowID (Feature), UPS.OutletSystem.Outlet.[3].PresentStatus.Present (Feature),
UPS.OutletSystem.Outlet.[3].PresentStatus.Present (Input), UPS.OutletSystem.OutletSystemID (Feature), UPS.PowerConverter.Inverter.PresentStatus.InternalFailure (Feature), UPS.PowerConverter.Inverter.Presen
tStatus.InternalFailure (Input), UPS.PowerConverter.Output.OutputID (Feature), UPS.PowerConverter.Output.PresentStatus.ShortCircuit (Feature), UPS.PowerConverter.Output.PresentStatus.ShortCircuit (Input),
UPS.PowerConverter.PowerConverterID (Feature), UPS.PowerConverter.Rectifier.PresentStatus.DCBusUnbalanced (Feature), UPS.PowerConverter.Rectifier.PresentStatus.DCBusUnbalanced (Input), UPS.PowerSummary.Aud
ibleAlarmControl (Feature), UPS.PowerSummary.CapacityGranularity1 (Feature), UPS.PowerSummary.CapacityMode (Feature), UPS.PowerSummary.Country (Feature), UPS.PowerSummary.DesignCapacity (Feature), UPS.Powe
rSummary.FlowID (Feature), UPS.PowerSummary.FullChargeCapacity (Feature), UPS.PowerSummary.iManufacturer (Feature), UPS.PowerSummary.iModel (Feature), UPS.PowerSummary.iProduct (Feature), UPS.PowerSummary.
iSerialNumber (Feature), UPS.PowerSummary.PowerSummaryID (Feature), UPS.PowerSummary.PresentStatus.CommunicationLost (Feature), UPS.PowerSummary.PresentStatus.CommunicationLost (Input), UPS.PowerSummary.Re
mainingCapacityLimit (Feature)
WARNING: vupslog: vsnprintf needed more than 256 bytes: 1103 (0 => Success), extending to 2127
11.907068 [D1] analyze_mapping_usage: 94 items are present in the report descriptor from HID UPS, but 15 of them have several Types named by same Path value, where at least one of the names was used and other(s) were not used by the mapping defined in the selected NUT subdriver MGE HID 1.58: UPS.BatterySystem.Charger.PresentStatus.VoltageTooHigh (Input), UPS.BatterySystem.Charger.PresentStatus.VoltageTooLow (Input), UPS.OutletSystem.Outlet.[2].PresentStatus.SwitchOn/Off (Input), UPS.OutletSystem.Outlet.[3].PresentStatus.SwitchOn/Off (Input), UPS.PowerSummary.PresentStatus.ACPresent (Input), UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit (Input), UPS.PowerSummary.PresentStatus.Charging (Input), UPS.PowerSummary.PresentStatus.Discharging (Input), UPS.PowerSummary.PresentStatus.Good (Input), UPS.PowerSummary.PresentStatus.InternalFailure (Input), UPS.PowerSummary.PresentStatus.NeedReplacement (Input), UPS.PowerSummary.PresentStatus.Overload (Input), UPS.PowerSummary.PresentStatus.ShutdownImminent (Input), UPS.PowerSummary.RemainingCapacity (Input), UPS.PowerSummary.RunTimeToEmpty (Input)