Comments (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.
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)
- Unable to calculate cost of some charges HOT 11
- Create REST endpoint to get price at specific datetime HOT 3
- Failed to update prices - System.ArgumentException: totalHours HOT 6
- Failed to calculate charging cost / energy for charging process HOT 6
- Unable to download docker image HOT 2
- Feature request - Make available in Home Assitant hassio HOT 15
- Feature request: Day of week in FIxedPricing
- Updating price from Home Assistant fails because "The input string 'unavailable' was not in a correct format." HOT 3
- Tibber "Failed to calculate charging cost" HOT 8
- Feature Request: Fixed Pricing Based on Day of Week HOT 2
- TeslaMateAgile.PriceHelper Tibber fails HOT 6
- No data available if multiple homes exist HOT 10
- Feature request : Show the energy prices in a dashboard HOT 5
- Feature request: monitoring multiple geofence IDs HOT 3
- Help needed: "number-based entity" in HomeAssistant clarification HOT 4
- TeslaMateAgile.PriceHelper Tibber fail HOT 5
- Everything is wonderfull HOT 1
- Option for setting negative prices to 0 in Energinet HOT 7
- Unable to connect to testamate HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamateagile.