Closed goncal closed 4 months ago
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>'
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!
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 🙂
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 :)
Hi @goncal , I have hass-monta running in my homeassistant it looks like hass-monta is able to fetch the last 10 wallet transactions in some human readable YAML format.
But I am not sure how I take such a YAML like data to teslamateagile and specifically instruct that this price corresponds to that charge and so on. Do you have a tip to share?
Hi,
I have a sensor in HomeAssistant (entity is sensor.energy_price) that contains the price/kWh at any given moment in time. However, it does not seem to work when I configure it as
The error messages I get are:
Does the entity need to be of type "input_number"? If so, can anyone give me some indications as to how to update the value of an input_number based on the value of a sensor?
Thanks in advance!