Skip to content

[feature request] Implementing the load profile from HomeAssistant #29

Description

@greteOne

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())

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions