chore: improve Home Assistant adapter
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
Close stale pull requests/issues / Find Stale issues and PRs (push) Has been cancelled

Add documentation for home assistant adapter.
Make adapter correctly set the measurement keys for PV production.
Add adapter configuration for grid import and export measurements.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2025-12-31 12:34:33 +01:00
parent 0cfed675ce
commit 7c98383e1f
11 changed files with 383 additions and 90 deletions

View File

@@ -3,7 +3,7 @@
"info": {
"title": "Akkudoktor-EOS",
"description": "This project provides a comprehensive solution for simulating and optimizing an energy system based on renewable energy sources. With a focus on photovoltaic (PV) systems, battery storage (batteries), load management (consumer requirements), heat pumps, electric vehicles, and consideration of electricity price data, this system enables forecasting and optimization of energy flow and costs over a specified period.",
"version": "v0.2.0.dev81236039"
"version": "v0.2.0.dev44099868"
},
"paths": {
"/v1/admin/cache/clear": {
@@ -2525,7 +2525,7 @@
"general": {
"$ref": "#/components/schemas/GeneralSettings-Output",
"default": {
"version": "0.2.0.dev81236039",
"version": "0.2.0.dev44099868",
"data_output_subpath": "output",
"latitude": 52.52,
"longitude": 13.405,
@@ -4272,7 +4272,7 @@
"type": "string",
"title": "Version",
"description": "Configuration file version. Used to check compatibility.",
"default": "0.2.0.dev81236039"
"default": "0.2.0.dev44099868"
},
"data_folder_path": {
"anyOf": [
@@ -4346,7 +4346,7 @@
"type": "string",
"title": "Version",
"description": "Configuration file version. Used to check compatibility.",
"default": "0.2.0.dev81236039"
"default": "0.2.0.dev44099868"
},
"data_folder_path": {
"anyOf": [
@@ -5240,7 +5240,7 @@
}
],
"title": "Load Emr Entity Ids",
"description": "Entity ID(s) of load energy meter reading [kWh]",
"description": "Entity ID(s) of load energy meter readings [kWh]",
"examples": [
[
"sensor.load_energy_total_kwh"
@@ -5251,6 +5251,46 @@
]
]
},
"grid_export_emr_entity_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Grid Export Emr Entity Ids",
"description": "Entity ID(s) of export to grid energy meter readings [kWh]",
"examples": [
[
"sensor.grid_export_energy_total_kwh"
]
]
},
"grid_import_emr_entity_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Grid Import Emr Entity Ids",
"description": "Entity ID(s) of import from grid energy meter readings [kWh]",
"examples": [
[
"sensor.grid_import_energy_total_kwh"
]
]
},
"pv_production_emr_entity_ids": {
"anyOf": [
{
@@ -5264,7 +5304,7 @@
}
],
"title": "Pv Production Emr Entity Ids",
"description": "Entity ID(s) of PV production energy meter reading [kWh]",
"description": "Entity ID(s) of PV production energy meter readings [kWh]",
"examples": [
[
"sensor.pv_energy_total_kwh"
@@ -5376,7 +5416,7 @@
}
],
"title": "Load Emr Entity Ids",
"description": "Entity ID(s) of load energy meter reading [kWh]",
"description": "Entity ID(s) of load energy meter readings [kWh]",
"examples": [
[
"sensor.load_energy_total_kwh"
@@ -5387,6 +5427,46 @@
]
]
},
"grid_export_emr_entity_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Grid Export Emr Entity Ids",
"description": "Entity ID(s) of export to grid energy meter readings [kWh]",
"examples": [
[
"sensor.grid_export_energy_total_kwh"
]
]
},
"grid_import_emr_entity_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Grid Import Emr Entity Ids",
"description": "Entity ID(s) of import from grid energy meter readings [kWh]",
"examples": [
[
"sensor.grid_import_energy_total_kwh"
]
]
},
"pv_production_emr_entity_ids": {
"anyOf": [
{
@@ -5400,7 +5480,7 @@
}
],
"title": "Pv Production Emr Entity Ids",
"description": "Entity ID(s) of PV production energy meter reading [kWh]",
"description": "Entity ID(s) of PV production energy meter readings [kWh]",
"examples": [
[
"sensor.pv_energy_total_kwh"