Skip to content

Commit

Permalink
refactor: Third batch of name standardization
Browse files Browse the repository at this point in the history
deye_(hybrid,sg04lp3).yaml:
- Renamed *Bought to *Import
- Renamed *Sold to *Export
  • Loading branch information
davidrapan committed Aug 11, 2024
1 parent a6d66da commit eeaf9ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
18 changes: 11 additions & 7 deletions custom_components/solarman/inverter_definitions/deye_hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ parameters:

- group: Grid
items:
- name: "Total Grid Power"
- name: "Grid Power"
class: "power"
state_class: "measurement"
uom: "W"
Expand Down Expand Up @@ -267,7 +267,8 @@ parameters:
registers: [0x00AB]
icon: "mdi:transmission-tower"

- name: "Today Energy Bought"
- name: Today Energy Import
alt: Today Energy Bought
friendly_name: Today's Energy Import
class: "energy"
state_class: "total_increasing"
Expand All @@ -277,7 +278,8 @@ parameters:
registers: [0x004C]
icon: "mdi:transmission-tower-export"

- name: "Total Energy Bought"
- name: Total Energy Import
alt: Total Energy Bought
class: "energy"
state_class: "total_increasing"
uom: "kWh"
Expand All @@ -286,7 +288,8 @@ parameters:
registers: [0x004E, 0x0050]
icon: "mdi:transmission-tower-export"

- name: "Today Energy Sold"
- name: Today Energy Export
alt: Today Energy Sold
friendly_name: Today's Energy Export
class: "energy"
state_class: "total_increasing"
Expand All @@ -296,7 +299,8 @@ parameters:
registers: [0x004D]
icon: "mdi:transmission-tower-import"

- name: "Total Energy Sold"
- name: Total Energy Export
alt: Total Energy Sold
class: "energy"
state_class: "total_increasing"
uom: "kWh"
Expand All @@ -316,7 +320,7 @@ parameters:

- group: Upload
items:
- name: "Total Load Power"
- name: "Load Power"
class: "power"
state_class: "measurement"
uom: "W"
Expand Down Expand Up @@ -406,7 +410,7 @@ parameters:
value: "Fault"
icon: "mdi:information"

- name: "Total Power"
- name: "Power"
class: "power"
state_class: "measurement"
uom: "W"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ parameters:
digits: 2
icon: "mdi:battery-sync"

- name: Today Energy Bought
- name: Today Energy Import
alt: Daily Energy Bought
friendly_name: Today's Energy Import
description: Today's energy imported from the grid
Expand All @@ -1341,7 +1341,7 @@ parameters:
registers: [0x0208]
icon: "mdi:transmission-tower-export"

- name: Today Energy Sold
- name: Today Energy Export
alt: Daily Energy Sold
friendly_name: Today's Energy Export
description: Today's energy exported/returned to the grid
Expand All @@ -1354,8 +1354,8 @@ parameters:
registers: [0x0209]
icon: "mdi:transmission-tower-import"

- name: "Total Energy Bought"
friendly_name: Total Energy Import
- name: Total Energy Import
alt: Total Energy Bought
description: Total energy imported from the grid
update_interval: 30
class: "energy"
Expand All @@ -1366,8 +1366,8 @@ parameters:
registers: [0x020A, 0x020B]
icon: "mdi:transmission-tower-export"

- name: "Total Energy Sold"
friendly_name: Total Energy Export
- name: Total Energy Export
alt: Total Energy Sold
description: Total energy exported/returned to the grid
update_interval: 30
class: "energy"
Expand Down

0 comments on commit eeaf9ec

Please sign in to comment.