In other addons or threads, I came across how to query energy data from HomeAssistant.
This could be used to create a current load profile based on the consumption of the last few days. Example:
https://community.home-assistant.io/t/emhass-an-energy-management-for-home-assistant/338126/3129
url = "http://xxxxxxx:8123/api/history/period/2025-02-13" headers = { "Authorization": "Bearer " + "xxxxxxxxxxxxx", "Content-Type": "application/json" } params = { "end_time": "2025-02-15T01:00:00+01:00", "filter_entity_id": "sensor.total_house_load_power_watts", "significant_changes_only": "true", "minimal_response": "true", "no_attributes": "anything_goes" } response = requests.get(url, headers=headers, params=params) print(response.json())
In other addons or threads, I came across how to query energy data from HomeAssistant.
This could be used to create a current load profile based on the consumption of the last few days. Example:
https://community.home-assistant.io/t/emhass-an-energy-management-for-home-assistant/338126/3129
url = "http://xxxxxxx:8123/api/history/period/2025-02-13" headers = { "Authorization": "Bearer " + "xxxxxxxxxxxxx", "Content-Type": "application/json" } params = { "end_time": "2025-02-15T01:00:00+01:00", "filter_entity_id": "sensor.total_house_load_power_watts", "significant_changes_only": "true", "minimal_response": "true", "no_attributes": "anything_goes" } response = requests.get(url, headers=headers, params=params) print(response.json())