Skip to content

Add a battery monitor middleware #32

@mano8

Description

@mano8

Describe the solution you'd like
Introduce a battery monitor middleware to the vemonitor_m8 package that leverages inputs from solar batteries (such as voltage, current, and temperature). The middleware should perform the following functions:

- **Global Battery Status**: Determine whether the battery is in a charge or discharge state by analyzing voltage and current data.

- **Charge Phase Identification**: Automatically detect the current charging phase (e.g., bulk, absorption, float) based on voltage and current patterns.

- **Charging Control**: Monitor voltage and current during charging to ensure they are within safe limits for the specific battery type. The middleware should raise alerts if parameters exceed recommended values.

- **Discharging Control**: Ensure that the battery's discharge current does not exceed the maximum safe limit. Generate warnings or actions if this limit is approached or surpassed.

- **Temperature Compensation** (Optional): If input data lacks temperature compensation, apply a compensation factor based on the battery type to correct voltage and current readings accordingly. This ensures accurate monitoring and control, particularly in varying environmental conditions.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions