Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Make distributionByTariff data available as totalCost value is not accurate with TimeOfUse

Abierto
#129 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api, backend

Línea de trabajo

Comienza localizando el manejo de la get session response y los campos existentes totalEnergyUsage y totalCost. Sigue cómo se representan y exponen los datos de la respuesta y, después, haz que totalEnergyUsage.distributionByTariff esté disponible junto con los demás valores de uso. Se considera terminado cuando los consumidores pueden acceder a la distribución por tarifa desde una respuesta de sesión sin depender del valor inexacto de totalCost.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The API totalCost value does not accurately represent the actual cost where time-of-use tarrifs are in use. Evnex describe this as a legacy value, one that appears to use a single tariff where that tariff lacks precision. In Home Assitant time-of-use tariff's can be added in a template as an example and with totalEnergyUsage we can calculate a more accurate cost. Except where there is a mix of solar and grid energy, as we don't know the mix of grid and solar energy. However this is contained in the get session response.

    "totalEnergyUsage": {
        "total": 1041.0,
        "distributionByTariff": {         -- If these values could be surfaced we could work out the true cost ourselves
            "solar": 88.9,                      -- either including solar export as a percieved cost or just a zero value. 
            "flat": 11.1
        },
        "distributionByEnergySource": {
            "cogeneration": 0.1,
            "gas": 0.1,
            "geothermal": 2.4,
            "hydro": 7,
            "localSolar": 88.9,
            "solar": 0.2,
            "wind": 1.3
        }
    },
    "totalCost": {
        "currency": "NZD",
        "amount": 0.0348,   -- This is not a correct value where time of use tariffs are used.
        "distribution": {
            "flat": 100
        }

I am going to attempt this myself, but I am not a Dev so raising it here as a backstop.

Regards

Lenguaje dominante
Python
Estrellas
13
Forks
8
Merge medio
3 h 23 min
PR fusionados (30 d)
1

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hardbyte/python-evnex

Todos los issues de hardbyte/python-evnex

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.