evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Publish tariff forecast data via WS/MQTT

Open naltatis opened this issue 2 months ago • 4 comments

With https://github.com/evcc-io/evcc/pull/13451 forecast data can be consumed via plugin. It would be nice to expose tariff forecast data via WS/MQTT. Currently only available via HTTP. This is useful when integrating with other automation systems like home assistant. It could also be applicable for future topics like solar forecast.

In MQTT this could be a single entry with JSON payload.

naltatis avatar May 03 '24 16:05 naltatis

We should probably refactor publishTariffs then and convert the output into a struct?

andig avatar May 09 '24 16:05 andig

Makes sense. Currently, we have quite a few tariff* properties. And if I see it correctly, they are all published together (if they exist).

naltatis avatar May 09 '24 22:05 naltatis

Brauchen wir das publishDelta oder ist das verfrühte Optimierung?

andig avatar May 10 '24 09:05 andig

Hm, gute Frage. Kann dir nicht mehr genau sagen ob es dafür eine technische Notwendigkeit gab. Jetzt gerade sehe ich keine. Ich würd sagen "mach raus, und wir gucken was passiert" :D

naltatis avatar May 10 '24 10:05 naltatis