Skip to content

Add an ups.conf toggle for voltage multipliers #2031

@jimklimov

Description

@jimklimov

battery.voltage: 1.3
battery.voltage.nominal: 1.2
is this a bug? I thought that voltage should be a bit higher.

The original post by @gyulaasztalos in #616 (comment) experimented with neutering of divide_by_10_conversion() and legrand_times10M_info() in the mapping tables.

This issue is about adding a configuration toggle (and perhaps ways of guessing a default if not specified - e.g. based on some mapping of device/model/firmware... identifiers) to report original voltages or factor them. Seems to be a common problem for many vendors, and sometimes for same brand/model devices with different HW/FW releases...

Note that currently not many drivers (or mapping tables where used) suggest having such a multiplication/division at all. For those that do, if we guess a default value - log this, with a suggestion to use the toggle if numbers seem off the target.

Loosely related to #1279 / #1652 area as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Incorrect or missing readingsOn some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)Low-hanging fruitA proposal or issue that is good for newcomers to codebase or otherwise a quick winenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions