Round daily energy sensors to 10 Wh (#339)
Daily Charging/Discharging Energy (YamBMS and per BMS) were published with 1 Wh resolution. Home Assistant records every float change, so a new state was written every few seconds while charging or discharging. - Add a round: 2 filter and set accuracy_decimals to 2 (0.01 kWh). - bms_base_daily_energy 1.1.4, changelog updated.
This commit is contained in:
1 parent
7b750a4b35
commit
61424486c0
3 files changed
+16
-7
No files matched your search
@@ -29,6 +29,7 @@
|
||||
* Fixed the RS485 link staying up with `Disabled` : the proxy sensors kept their last value, so the Pylontech component went on answering the inverter with stale data and kept reporting its status as ON ; the sensors it checks are now invalidated when the protocol is off, which makes it stop answering and report the link as down
|
||||
* Fixed the CAN bus not stopping when the protocol was set to `Disabled` at runtime : the frame index kept its previous value and the last frame was re-emitted every 100 ms
|
||||
* Fixed the reported communication bus and protocol being overwritten when a node declares several inverter links : each link now owns its slot, and the telemetry reports every link instead of the last one
|
||||
* `Daily Charging Energy` / `Daily Discharging Energy` (YamBMS and BMS) rounded to 10 Wh (`0.01 kWh`) instead of 1 Wh, to reduce the number of state changes recorded by Home Assistant
|
||||
|
||||
* YamBMS 1.8.0 :
|
||||
* Set esphome `min_version` to `2026.8.0`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Updated : 2025.12.22
|
||||
# Version : 1.1.3
|
||||
# Updated : 2026.11.06
|
||||
# Version : 1.1.4
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
# YamBMS ( Yet another multi-BMS Merging Solution )
|
||||
@@ -28,10 +28,12 @@ sensor:
|
||||
unit_of_measurement: 'kWh'
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
accuracy_decimals: 3
|
||||
accuracy_decimals: 2
|
||||
filters:
|
||||
# Multiplication factor from W to kW is 0.001
|
||||
- multiply: 0.001
|
||||
# 10 Wh steps: HA stores every float change, 1 Wh steps wrote a state every few seconds
|
||||
- round: 2
|
||||
- platform: total_daily_energy
|
||||
device_id: bms_${bms_id}
|
||||
name: "Daily Discharging Energy"
|
||||
@@ -39,7 +41,9 @@ sensor:
|
||||
unit_of_measurement: 'kWh'
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
accuracy_decimals: 3
|
||||
accuracy_decimals: 2
|
||||
filters:
|
||||
# Multiplication factor from W to kW is 0.001
|
||||
- multiply: 0.001
|
||||
# 10 Wh steps: HA stores every float change, 1 Wh steps wrote a state every few seconds
|
||||
- round: 2
|
||||
@@ -1,4 +1,4 @@
|
||||
# Updated : 2026.11.05
|
||||
# Updated : 2026.11.06
|
||||
# Version : 1.8.1
|
||||
# GitHub : https://github.com/Sleeper85/esphome-yambms
|
||||
|
||||
@@ -2232,10 +2232,12 @@ sensor:
|
||||
unit_of_measurement: 'kWh'
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
accuracy_decimals: 3
|
||||
accuracy_decimals: 2
|
||||
filters:
|
||||
# Multiplication factor from W to kW is 0.001
|
||||
- multiply: 0.001
|
||||
# 10 Wh steps: HA stores every float change, 1 Wh steps wrote a state every few seconds
|
||||
- round: 2
|
||||
|
||||
# Daily Discharging Energy
|
||||
- platform: total_daily_energy
|
||||
@@ -2245,10 +2247,12 @@ sensor:
|
||||
unit_of_measurement: 'kWh'
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
accuracy_decimals: 3
|
||||
accuracy_decimals: 2
|
||||
filters:
|
||||
# Multiplication factor from W to kW is 0.001
|
||||
- multiply: 0.001
|
||||
# 10 Wh steps: HA stores every float change, 1 Wh steps wrote a state every few seconds
|
||||
- round: 2
|
||||
|
||||
# +--------------------------------------+
|
||||
# | Requested Charge Voltage (CVL) |
|
||||
|
||||
Reference in new issue
Block a user