Make distributionByTariff data available as totalCost value is not accurate with TimeOfUse
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hardbyte/python-evnex
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
hardbyte/python-evnex#119 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
hardbyte/python-evnex#113 ·
-
Live Load data not available Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
hardbyte/python-evnex#109 · 3 comentarios ·
Todos los issues de hardbyte/python-evnex
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stephrobert/dsoxlab#238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
sublimehq/package_control#1780 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nwg-piotr/nwg-displays#145 ·