From 194c0f597d4addf21e8ec2dde67f3dc36ebeb5fb Mon Sep 17 00:00:00 2001 From: David Rapan Date: Sun, 22 Sep 2024 21:41:47 +0200 Subject: [PATCH] refactor: Incorrectly named Total Grid Production --- .../inverter_definitions/deye_hybrid.yaml | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/custom_components/solarman/inverter_definitions/deye_hybrid.yaml b/custom_components/solarman/inverter_definitions/deye_hybrid.yaml index b0eedcb..f757a12 100644 --- a/custom_components/solarman/inverter_definitions/deye_hybrid.yaml +++ b/custom_components/solarman/inverter_definitions/deye_hybrid.yaml @@ -404,6 +404,28 @@ parameters: registers: [0x00AB] icon: "mdi:transmission-tower" + - name: "Today Energy" + alt: Daily Energy + friendly_name: Today's Energy + class: "energy" + state_class: "total_increasing" + uom: "kWh" + scale: 0.1 + rule: 2 + registers: [0x003C] + icon: "mdi:transmission-tower" + + - name: "Total Energy" + class: "energy" + state_class: "total_increasing" + uom: "kWh" + scale: 0.1 + rule: 4 + registers: [0x003F, 0x0040] + icon: "mdi:transmission-tower" + validation: + min: 0.1 + - name: Today Energy Import alt: Today Energy Bought friendly_name: Today's Energy Import @@ -450,17 +472,6 @@ parameters: validation: min: 0.1 - - name: "Total Grid Production" - class: "energy" - state_class: "total_increasing" - uom: "kWh" - scale: 0.1 - rule: 4 - registers: [0x003F, 0x0040] - icon: "mdi:transmission-tower" - validation: - min: 0.1 - - group: Upload items: - name: "Load Power"