Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solis Inverter - Total Battery Charge/Discharge Sensor State Class #1187

Open
RadioactiveMan56 opened this issue Jan 1, 2025 · 0 comments
Open
Labels
bug Something isn't working non solax non solax

Comments

@RadioactiveMan56
Copy link

Describe the bug

The following entities should have

state_class=SensorStateClass.TOTAL_INCREASING

And i also, suggest:

sleepmode=SLEEPMODE_LASTAWAKE

SolisModbusSensorEntityDescription(
    name="Total Battery Charge",
    key="total_battery_charge",
    native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
    device_class=SensorDeviceClass.ENERGY,
    register=33161,
    register_type=REG_INPUT,
    unit=REGISTER_U32,
    allowedtypes=HYBRID,

SolisModbusSensorEntityDescription(
name="Total Battery Discharge",
key="total_battery_discharge",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
register=33165,
register_type=REG_INPUT,
unit=REGISTER_U32,
allowedtypes=HYBRID,

Integration Version

2024.12.2

Homeassistant core version

2024.11.3

Inverter brand

Solis

Plugin used

plugin_solis.py

Serial prefix

01026222428056

Connection Method

RS485-TCP

Detailed Error Log

Does not cause an error so no log

Additional context

Was trying to use these entities in the Energy dashboard

@RadioactiveMan56 RadioactiveMan56 added bug Something isn't working non solax non solax labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non solax non solax
Projects
None yet
Development

No branches or pull requests

1 participant