Skip to content

Refactor site model #496

@klaasnicolaas

Description

@klaasnicolaas

Add more information that can be obtained from:

https://my.autarco.com/api/site/[key]/kpis/power
https://my.autarco.com/api/site/[key]/kpis/energy

Add to Site class model:

  • CO2 compensation (power and energy) - Everyone
    • co2_today
    • co2_month
    • co2_to_date
  • Energy consumption (power and energy) - Everyone
    • consumption_today
    • consumption_month
    • consumption_to_date
  • Grid attributes (power and energy) - Only values when having battery
  • Self sufficiency attributes (power and energy) - Only values when having battery
    • self_sufficiency_month
    • self_sufficiency_to_date

Metadata

Metadata

Assignees

Labels

new-featureNew features or request.no-staleThis issue or PR is exempted from the stable bot.refactorImprovement of existing code, not introducing new features.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions