evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.43k stars 633 forks source link

wenn Zeitzonen Tarif im "configurable custom tariff" definiert ist, wird im UI kein Netzpreis angezeigt #10342

Closed VolkerK62 closed 12 months ago

VolkerK62 commented 12 months ago

Describe the bug

Ich habe den configurable custom tariff https://github.com/evcc-io/evcc/pull/10306 ausprobiert. Funktoniert sowohl bei grid, als auch bei feedin. Wenn man aber einen Zeitzonen Tarif definiert, wird im UI bei Netzbezug kein Preis angezeigt.

Steps to reproduce

.

Configuration details

tariffs:
  currency: EUR
  grid:
    type: custom 
    price: 
      source: mqtt
      topic: Haus/Preis_Bezug
      timeout: 25h
    zones:
      - days: Mo-So
        hours: 2-5
        price:
          source: mqtt
          topic: Haus/Preis_Bezug
          timeout: 25h
  feedin:
    type: custom 
    price: 
      source: mqtt
      topic: Haus/Preis_Einspeisung
      timeout: 25h

Log details

bitte Beschied geben, was evtl an Log nötig ist

What type of operating system are you running?

Linux

Version

0.121.0 (40a391da)

VolkerK62 commented 12 months ago

Gleiches Verhalten, auch wenn der Zonenpreis als fester Wert eingetragen wird

tariffs:
  currency: EUR
  grid:
    type: custom 
    price: 
      source: mqtt
      topic: Haus/Preis_Bezug
      timeout: 25h
    zones:
      - days: Mo-So
        hours: 2-5
        price: 0.22
  feedin:
    type: custom 
    price: 
      source: mqtt
      topic: Haus/Preis_Einspeisung
      timeout: 25h
andig commented 12 months ago

Wenn man aber einen Zeitzonen Tarif definiert, wird im UI bei Netzbezug kein Preis angezeigt.

Das geht ja auch nicht. Die Config sollte eigentlich einen Fehler liefern und abbrechen:

[main  ] FATAL 2023/10/16 22:33:14 cannot create tariff 'custom': 1 error(s) decoding:

* '' has invalid keys: zones
VolkerK62 commented 12 months ago

Ich habe das ausprobiert, um die Doku zu aktualisieren.

Die Config sollte eigentlich einen Fehler liefern und abbrechen:

Es gab keinen Fehler. Deshlab dachte ich, es sollte möglich sein.

andig commented 12 months ago

Sehr seltsam. Das muss einen Fehler geben!

VolkerK62 commented 12 months ago

Sorry, aber mit der Config oben, gibt es keinen Fehler. Outcome ist so, als wenn grid gar nicht definiert wäre. Taucht auch in /api/state nicht auf.