refactor: update energy flow card configuration and sensor logic for improved accuracy

- Modified the energy flow card configuration to reflect correct sensor mappings for grid and battery entities, changing production and consumption references.
- Enhanced the JackeryHome sensor logic to ensure accurate power readings for battery charge and discharge, correcting the handling of meter values.
- Updated display states for better representation of energy flow direction.
This commit is contained in:
不求圣剑
2025-11-25 10:24:04 +08:00
parent a641b64a8f
commit 1d50d5a7b0
2 changed files with 11 additions and 8 deletions

View File

@@ -3,18 +3,21 @@ entities:
grid:
entity:
consumption: sensor.grid_import
production: sensor.grid_import
display_state: one_way
production: sensor.grid_export
display_state: two_way
color_circle: true
solar:
entity: sensor.solar_power
battery:
entity:
consumption: sensor.battery_charge
production: sensor.battery_discharge
consumption: sensor.battery_discharge
production: sensor.battery_charge
state_of_charge: sensor.battery_state_of_charge
display_state: one_way
display_state: two_way
color_circle: true
home:
color_icon: true
watt_threshold: 10000
watt_threshold: 10000