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

Fix Load Energy Today Range #502

Merged
merged 3 commits into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions custom_components/foxess_modbus/entities/entity_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
native_unit_of_measurement="kWh",
icon="mdi:solar-power",
scale=0.1,
validate=[Range(0, 100)],
validate=[Range(0, 1000)],
),
ModbusSensorDescription(
key="battery_charge_total",
Expand Down Expand Up @@ -1303,7 +1303,7 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
native_unit_of_measurement="kWh",
icon="mdi:transmission-tower-import",
scale=0.1,
validate=[Range(0, 100)],
validate=[Range(0, 1000)],
),
ModbusSensorDescription(
key="grid_consumption_energy_total",
Expand Down Expand Up @@ -1345,7 +1345,7 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
native_unit_of_measurement="kWh",
icon="mdi:transmission-tower-export",
scale=0.1,
validate=[Range(0, 100)],
validate=[Range(0, 1000)],
),
ModbusSensorDescription(
key="total_yield_total",
Expand Down Expand Up @@ -1409,7 +1409,7 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
icon="mdi:import",
scale=0.1,
# unsure if this actually goes negative
validate=[Range(-100, 100)],
validate=[Range(-1000, 1000)],
),
ModbusSensorDescription(
key="load_power_total",
Expand Down Expand Up @@ -1460,7 +1460,7 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
icon="mdi:home-lightning-bolt-outline",
scale=0.1,
# unsure if this actually goes negative
validate=[Range(-100, 100)],
validate=[Range(-1000, 1000)],
),
]

Expand Down
Loading