Skip to content

battery.charge.low ignored (when set in ups.conf but OK with upsrw) #1993

@MrM40

Description

@MrM40

Driver: usbhid-ups, version 0.47 (2.8.0) (from Debian package)
OS: Debian 12 (bookworm)
UPS: Eaton S3 700 Gen. 1
MOBO: SuperMicro X11

Problem:
When I set battery.charge.low = 83 in the driver-config file, like below, the monitor doesn't respect this, i.e. when battery.charge <= battery.charge.low the shutdown procedure isn't triggered. But it worke find if I set battery.charge.low using upsrw !

[eaton]
  driver = usbhid-ups
  port = auto
  desc = "eaton S3 ups"
  offdelay = 120
  ondelay = 125
  override.battery.charge.low = 83

Aso tried default.battery.charge.low = 83

These are are the UPS variables after I set battery.charge.low (either in driver-config or with upsrw):

battery.charge: 83
battery.charge.low: 83
battery.runtime: 2520
driver.parameter.offdelay: 120
driver.parameter.ondelay: 125
outlet.1.status: off
ups.delay.shutdown: 120
ups.delay.start: 125
ups.load: 0
ups.status: OB

I assume the monitor is looking at these variables and I assume it compare battery.charge and battery.charge.low

The problem using upsrw is it isn't persistent and have to be set every time the server boots.

I use this command to set it with upsrw:

upsrw -s battery.charge.low=83 -u nut -p xxxx eaton@localhost 

Metadata

Metadata

Assignees

No one assigned

    Labels

    EatonShutdowns and overrides and battery level triggersIssues and PRs about system shutdown, especially if battery charge/runtime remaining is involvedUSBdocumentationimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)service/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions