Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from Roeland54/patch/tripower
Browse files Browse the repository at this point in the history
Patch for tripower
  • Loading branch information
Roeland54 authored Nov 11, 2024
2 parents 62d2925 + 8b52d9a commit 84ea342
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions sma/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 0.1.4

- patch for tripower inverters

## 0.1.3

- Extend package to support tripower inverters
Expand Down
2 changes: 1 addition & 1 deletion sma/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "SMA Energy Meter emulator"
description: "Simulate one or more SMA energy meters based on mqtt messages."
version: "0.1.3"
version: "0.1.4"
slug: sma
url: "https://github.com/Roeland54/SMA-Energy-Meter-emulator"
arch:
Expand Down
6 changes: 1 addition & 5 deletions sma/src/emeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class emeterPacket:
SMA_CURRENT_L1 = 0x001F0400
SMA_CURRENT_L2 = 0x00330400
SMA_CURRENT_L3 = 0x00470400
SMA_VOLTAGE_L1 = 0x00020400
SMA_VOLTAGE_L1 = 0x00320400
SMA_VOLTAGE_L2 = 0x00340400
SMA_VOLTAGE_L3 = 0x00480400
SMA_VERSION = 0x90000000
Expand All @@ -78,10 +78,6 @@ def begin(self, timeStampMs):

# Add dummy values for measurements to make sure the package always contains these. Solves tripower inverters not recognizing the data as valid.
# Totals
self.addMeasurementValue(emeterPacket.SMA_POSITIVE_ACTIVE_POWER, 0)
self.addCounterValue(emeterPacket.SMA_POSITIVE_ACTIVE_ENERGY, 0)
self.addMeasurementValue(emeterPacket.SMA_NEGATIVE_ACTIVE_POWER, 0)
self.addCounterValue(emeterPacket.SMA_NEGATIVE_ACTIVE_ENERGY, 0)
self.addMeasurementValue(emeterPacket.SMA_POSITIVE_REACTIVE_POWER, 0)
self.addCounterValue(emeterPacket.SMA_POSITIVE_REACTIVE_ENERGY, 0)
self.addMeasurementValue(emeterPacket.SMA_NEGATIVE_REACTIVE_POWER, 0)
Expand Down

0 comments on commit 84ea342

Please sign in to comment.