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 #7 from Roeland54/general-updates
Browse files Browse the repository at this point in the history
General updates
  • Loading branch information
Roeland Lutters authored Jul 15, 2024
2 parents e998c32 + ab028be commit 7386604
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ This home assistant add-on can emulate the existence of one or more SMA Energy M
![Supports armv7 Architecture][armv7-shield]
![Supports i386 Architecture][i386-shield]

## Thanks to
Based on code from [Eml2emeter](https://github.com/jtuemmler/sml2emeter) and used [Volvo2Mqtt](https://github.com/Dielee/volvo2mqtt) as example for the home assistant add-on specific configuration.

<!--
Notes to developers after forking or using the github template feature:
Expand Down
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.0.8

- fix configuration

## 0.0.7

- Add configuration options
Expand Down
22 changes: 10 additions & 12 deletions sma/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ The add-on will subscribe to the following mqtt topic: `sma/emeter/<NUMERIC_METE

```json
{
"powerIn": 1200, // power consumption in W
"powerOut": 800, // power production in W
"energyIn": 500000, // consumed energy in Wh
"energyOut": 200000, // produced energy in Wh
"powerIn": 1200, // power consumption in dW 120W is 1200dW (multiply Watts by 10)
"powerOut": 800, // power production in dW
"energyIn": 500000, // consumed energy in Ws (multipy WattHours by 3600)
"energyOut": 200000, // produced energy in Ws
"destinationAddresses": [
// optional ip-addresses to send the packets to. Default behaviour uses multicast.
]
Expand All @@ -32,14 +32,12 @@ metadata: {}
data:
topic: sma/emeter/1234/state
payload_template: |-
{{
{
"powerIn": 0,
"powerOut": states('sensor.solax_inverter_power'),
"energyIn": 0,
"energyOut": states('sensor.solax_inverter_energy'),
"destinationAddresses": [
]
"powerIn": {{((states('sensor.power_consumed_from_grid') | float) * 10) | round(0)}},
"powerOut": {{((states('sensor.power_returned_to_grid') | float) * 10) | round(0)}},
"energyIn": {{((states('sensor.energy_grid_consumed_helper') | float) * 1000 * 3600) | round(0)}},
"energyOut": {{((states('sensor.energy_grid_returned_helper') | float) * 1000 * 3600) | round(0)}},
"destinationAddresses": [
]
}
}}
```
4 changes: 2 additions & 2 deletions 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.0.7"
version: "0.0.8"
slug: sma
url: "https://github.com/Roeland54/SMA-Energy-Meter-emulator"
arch:
Expand All @@ -19,7 +19,7 @@ options:
port: "auto_port"
username: "auto_user"
password: "auto_password"
debug: false
debug_logging: false
disable_logging: false
schema:
enable_mqtt: bool
Expand Down
File renamed without changes.

0 comments on commit 7386604

Please sign in to comment.