Comments (3)
Hey, it looks like it's failing to call Home Assistant completely rather than failing to find any data
You should be able to use any numeric based entity, it does not have to be an input_number
Make sure you can call it using a tool like Postman locally to ensure you have the correct URL and authentication details
The call it makes is pretty much like this:
GET <home-assistant-url>/api/history/period/2024-05-07T04:00:00.353Z?end_time=2024-05-14T04:00:00.999Z&filter_entity_id=<your-entity-id>
With the 'Authorization' header set to 'Bearer '
You can use cURL to try it via this command:
curl --location '<home-assistant-url>/api/history/period/2024-05-07T04:00:00.353Z?end_time=2024-05-14T04%3A00%3A00.999Z&filter_entity_id=<your-entity-id>' --header 'Authorization: Bearer <your-token>'
from teslamateagile.
Thanks a lot for the tip, @MattJeanes!
There was indeed a typo in the configuration (a missing "s" in "https" for the URL). Shame on me for not double-checking before opening the issue. Sorry about that!
Once the typo has been fixed and cleaning up the homeassistant table (there were a few entries that contained "unavailable" instead of a float, which I need to make sure won't make it again into the system) everything has started working :)
Please feel free to close the issue and accept my apologies. Thanks again for your very useful product and for sharing it!
from teslamateagile.
Awesome, no problem - happy to help and see you got it working!
Top tip by the way for the unavailable problem because I had the same, you can set up an automation so that when the number sensor changes you can update an input_number
with it's value. This ensures that the value is always available with it's last known value and never gets set to unavailable 🙂
from teslamateagile.
Related Issues (20)
- Multiple providers? HOT 2
- Feature request? Generic input of dynamic pricing HOT 2
- Calculation fails when the end time of a charge is very close to the beginning of the hour HOT 3
- 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
- Enhancement / Feature Upgrade - integration of EMS evcc HOT 2
- 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
- TeslaMateAgile.PriceHelper Tibber fail HOT 5
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.