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

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Roeland authored and Roeland committed Nov 8, 2024
2 parents a5f5b55 + 7b1038c commit ba43122
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
changed: ${{ steps.changed_addons.outputs.changed }}
steps:
- name: Check out the repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Get changed files
id: changed_files
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Get information
id: info
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
addons: ${{ steps.addons.outputs.addons_list }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: 🔍 Find add-on directories
id: addons
Expand All @@ -33,9 +33,9 @@ jobs:
path: ${{ fromJson(needs.find.outputs.addons) }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@v2.16
uses: frenck/action-addon-linter@v2.17
with:
path: "./${{ matrix.path }}"
2 changes: 1 addition & 1 deletion sma/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 0.1.2-rc2
## 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.2-rc2"
version: "0.1.3"
slug: sma
url: "https://github.com/Roeland54/SMA-Energy-Meter-emulator"
arch:
Expand Down
3 changes: 1 addition & 2 deletions sma/src/emeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def begin(self, timeStampMs):
self._pPacketPos = self._headerLength
self.storeU32BE(self._pMeterTime, timeStampMs)
self._length = self.INITIAL_PAYLOAD_LENGTH

# 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)
Expand Down Expand Up @@ -143,7 +143,6 @@ def begin(self, timeStampMs):
self.addMeasurementValue(emeterPacket.SMA_VOLTAGE_L3, 0)
self.addMeasurementValue(emeterPacket.SMA_POWER_FACTOR_L3, 0)


def addMeasurementValue(self, id, value):
self._pPacketPos = self.storeU32BE(self._pPacketPos, id)
self._pPacketPos = self.storeU32BE(self._pPacketPos, value)
Expand Down

0 comments on commit ba43122

Please sign in to comment.