Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to show current price and co2 info #6048

Merged
merged 14 commits into from
Feb 6, 2023
Merged

Conversation

naltatis
Copy link
Member

@naltatis naltatis commented Feb 4, 2023

Introducing an option to show current price and co2 data in the expanded energy flow.

Changes

  • 💵🌱 New UI option to add price or co2 data to the energy flow. (fixes Live Netzpreis im UI statt ausschließlich hier: Auswertung Ladeenergie #5488)
    • The option is off by default since we consider it a more enthusiast feature
    • Options are only available of the datasources (tariffs) are configured.
    • Tooltip shows all available data (price, co2) including their full units. For brevity we've opted to show short units in the overview (g instead of gCO2e/kWh and ct instead of ct/kWh).
  • 🔋 Added additional home battery info as tooltip. (fixes Anzeige Kapazität Batterie  #5918)
    • capacity has to be configured
    • support for multiple batteries > separate tooltip lines
  • 📣 Published new data fields (prerequisite for PV Überschuss je Ladevorgang #5202)
    • Added tariffCo2. Shows the current co2 data configured in tariffs.planner that return co2 based values.
    • Added greenShare. Indicates how much of the current energy is self-produced (pv, battery) and home much is imported from the grid. greenShare=1 means only own energy. greenShare=0 means full grid import.
    • Added tariffEffectivePrice and tariffEffectiveCo2. This indicated the effective cost of the energy used in your house (home consumption + charging). The values changed based on greenShare.
    • tariffGrid and tariffFeedIn will only be publish when they are configured. Previously we returned a 30ct/8ct default value. These values are still used as a fallback for global savings calculations but will not be exposed any more.

This PR also includes refactoring that will make it easier to introduce session based-statistics (% green energy, co2 emissions, price) and expand the community dataset (telemetry) later. The savings.go got simplified and calculations were moved to tariff and site. From there it will be easier to reuse the required data for session and telemetry use.

Replaces #4760

New setting
price_co2

Large screens
large

Medium screens
medium

Small screens
small

Options are only available if a datasource exists
disabled if no datasource

Dark mode
dark-mode

Battery details (two batteries > two lines in tooltip)
battery details

@naltatis naltatis requested a review from andig February 4, 2023 15:35
@naltatis naltatis changed the title Option to show current price and co2 info in legend Option to show current price and co2 info in UI Feb 4, 2023
@naltatis naltatis changed the title Option to show current price and co2 info in UI Option to show current price and co2 info Feb 4, 2023
@VolkerK62
Copy link
Contributor

Zum Bild mit dem Tooltip der 2 Batterien:
Ist der Tooltip und der Gesamt-Soc real? (oder ist das nur ein optisches Beispiel)
Wenn real, dann ist der Gesamt-Soc falsch.

@naltatis
Copy link
Member Author

naltatis commented Feb 4, 2023

Das ist nur ein Beispiel das ich mir für die UI zusammengebaut habe. Ich hab die Zahlen nur grob geraden, nicht ausgerechnet 😀

@andig andig added the ux User experience/ interface label Feb 5, 2023
@andig
Copy link
Member

andig commented Feb 5, 2023

Bei den Screenshots stolpere ich noch über die Netzstromdetails. Das ist sehr umgangsprachlich. Vllt eher Netztarifdetails oder Bezugstarifdetails? Braucht es das Setting überhaupt oder könnten wir nicht Preis und Co2 (falls Planner konfiguriert) einfach beiden anzeigen? Das ist viel Setting für ein kleines Feature.

@naltatis
Copy link
Member Author

naltatis commented Feb 5, 2023

Braucht es das Setting überhaupt oder könnten wir nicht Preis und Co2 (falls Planner konfiguriert) einfach beiden anzeigen?

Um beide gleichzeitig anzuzeigen haben wir keinen Platz in der Legende. Zudem wir das auch sehr zahlenlastig. Ich find den Default "keine Zusatzinfos anzuzeigen" gut. Hatte auch überlegt den Preis nur bei dynamischen Stromtarifen (Awattar, Tibber, Zones?) anzuzeigen, das ist aber auch irgendwie komisch. Daher manuelle Kontrolle.

@naltatis
Copy link
Member Author

naltatis commented Feb 5, 2023

Bei den Screenshots stolpere ich noch über die Netzstromdetails. Das ist sehr umgangsprachlich. Vllt eher Netztarifdetails oder Bezugstarifdetails?

Netztarifdetails it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux User experience/ interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anzeige Kapazität Batterie Live Netzpreis im UI statt ausschließlich hier: Auswertung Ladeenergie
3 participants