Created
December 1, 2024 13:42
-
-
Save danielwagn3r/1804df6e6b441a11f348c89dd898f186 to your computer and use it in GitHub Desktop.
Home Assistant MEC Meter Emulator SolarEdge configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example configuration.yaml entry | |
default_config: | |
mobile_app: | |
mec_meter_emulator: | |
broker: packet.verbund.at | |
port: 8883 # Uses TLS per default | |
username: user | |
password: pass | |
topic: mecmeter/user | |
client_id: user | |
update_interval: 10 | |
templates: | |
# Power at the Grid-Meter - Positive = consumption, negative = grid feed in | |
grid: > | |
{{ | |
(states('sensor.solaredge_i1_m1_ac_power') | float(default=0) * -1 ) | |
}} | |
# Power consumption of the house: Negative = consumption, positive = invalid | |
ld: > | |
{{ | |
(states('sensor.solaredge_i1_m1_ac_power') | float(default=0)) + | |
(states('sensor.solaredge_i1_ac_power') | float(default=0) * -1 ) | |
}} | |
# Current PV generation power: Positive = production, negative = invalid | |
pv: > | |
{{ | |
(states('sensor.solaredge_i1_dc_power') | float(default=0)) + | |
(states('sensor.solaredge_i1_b1_dc_power') | float(default=0)) | |
}} | |
# current battery input / output power: positive: battery discharging, negative: battery charging | |
akk: > | |
{{ | |
(states('sensor.solaredge_i1_b1_dc_power') | float(default=0) * -1 ) | |
}} | |
# SOC of the Home Battery, 0-100 | |
soc: > | |
{{ | |
states('sensor.solaredge_i1_b1_state_of_energy') | default('unavailable') | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuration for usage with https://github.com/cambrosch/MecMeterEmulator plugin and home assistant