Git Product home page Git Product logo

Comments (2)

mailkluge avatar mailkluge commented on July 18, 2024 2

Hey Matt
Thx for your answer. Yes, I think you are right. I tried TeslamateAgile today for the first time and I understood your concept. EVCC calculates a session price and the price is available via MQTT. A session is the time the charging plug is connected to the car. For this duration the price is calculated by evcc recognizing solar and grid power mix and dynamic tariffs. But I understand what you wrote and it is different how teslamate works (session is between start and stop charging). Theoretically evcc includes a database where the prices are stored but these information is not available via API. And you had to map the entries in teslamate to a session in evcc…could be error-prone.
thx for the hint with Home Assistant - maybe I will give it a try.

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 18, 2024

Hey, I'm assuming you're talking about this project: https://github.com/evcc-io/evcc

From what I can see on my brief look at the API (might be wrong potentially) I can't see a way to get the information TeslaMateAgile needs to calculate prices over a given time range.

This project works after the fact and not in realtime which means it relies on historical data that can be queried later, which works well for dynamic energy tariffs but not so well for MQTT/REST based realtime feeds.

My recommended workaround for such a use case would be to stream the current energy price as an entity into Home Assistant and let that keep track of the history, which you can then use in TeslaMateAgile with the Home Assistant integration.

I could be reading their documentation wrong though, I've literally only just looked at it now for 5 minutes so if they do have the ability to read historical data for prices via an API then we can have another look.

It is also possible to implement support for realtime price feeds but that would make this project a lot more complicated as it would then need to store it's own data and state, and realistically most people who are using this are smart home enthusiasts who probably already have Home Assistant setup, not to mention having to support many different providers or the flexibility to configure your own which is something HA excels at doing already.

Hope that helps!

from teslamateagile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.