{"id":49550127,"url":"https://github.com/sgpinkus/ha_aemo_data_nem_forecasts","last_synced_at":"2026-05-02T22:03:43.170Z","repository":{"id":342425174,"uuid":"1173422806","full_name":"sgpinkus/ha_aemo_data_nem_forecasts","owner":"sgpinkus","description":"Home Assistant integration to pull forecast and actual AEMO NEM metrics from dashboard and exposed as sensors","archived":false,"fork":false,"pushed_at":"2026-03-22T07:57:18.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-22T22:46:53.529Z","etag":null,"topics":["aemo","forecasts","home-assistant"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgpinkus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-05T10:53:10.000Z","updated_at":"2026-03-22T08:58:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sgpinkus/ha_aemo_data_nem_forecasts","commit_stats":null,"previous_names":["sgpinkus/ha_aemo_data_nem_forecasts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sgpinkus/ha_aemo_data_nem_forecasts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgpinkus%2Fha_aemo_data_nem_forecasts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgpinkus%2Fha_aemo_data_nem_forecasts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgpinkus%2Fha_aemo_data_nem_forecasts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgpinkus%2Fha_aemo_data_nem_forecasts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgpinkus","download_url":"https://codeload.github.com/sgpinkus/ha_aemo_data_nem_forecasts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgpinkus%2Fha_aemo_data_nem_forecasts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32550918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T21:31:48.061Z","status":"ssl_error","status_checked_at":"2026-05-02T21:31:46.574Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aemo","forecasts","home-assistant"],"created_at":"2026-05-02T22:03:40.067Z","updated_at":"2026-05-02T22:03:43.156Z","avatar_url":"https://github.com/sgpinkus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AEMO_DATA_NEM_FORECASTS\nThis Home Assistant integration pulls data from a public AEMO NEM API endpoint that underlies the Price and Demand tab of the [NEM dashboard](https://www.aemo.com.au/energy-systems/electricity/national-electricity-market-nem/data-nem/data-dashboard-nem) and exposes it as a collection `SensorEntity` instances.\n\nThe AEMO API endpoint data is like:\n\n        [\n          {\n            \"SETTLEMENTDATE\": \"2026-02-27T18:40:00\",\n            \"REGION\": \"NSW1\",\n            \"RRP\": 73.23171,\n            \"TOTALDEMAND\": 8968.00000,\n            \"PERIODTYPE\": \"ACTUAL\",\n            \"NETINTERCHANGE\": -89.57000,\n            \"SCHEDULEDGENERATION\": 7146.28839,\n            \"SEMISCHEDULEDGENERATION\": 1736.26161,\n            \"APCFLAG\": 0.0\n          },\n          ...\n        ]\n\n  - PERIODTYPE ::= (\"ACTUAL\" | \"FORECAST\")\n  - [APCFLAG](https://visualisations.aemo.com.au/aemo/nemweb/mmsdatamodelreport/electricity/mms%20data%20model%20report_files/MMS_130.htm)\n  - Forecast is in 30m intervals and from now until at least 04:00 the next day.\n  - A settlement time of 2026-03-07T04:00:00 means the time period [03:30, 04:00]\n\nOne sensor is created for each of REGION x PERIODTYPE x METRIC giving 5x2x6=60 possible entities grouped into device by region.\n\nThe scalar value of each sensor is the most current value (the first forecast value or latest actual value).\n\nEach sensor also stashes a \"series\" field in extra attributes which is the *entire* latest time series for the given metric.\n\nTechnical note: For FORECAST type metrics we let the sensor attributes get persisted by the history recorder as per usual. For ACTUAL type metrics we by-pass the recorder and just stash one time series, updating it when new data is available (it's still accessed via extra attributes).\n\n# INSTALLATION\nCopy `custom_components/aemo_data_nem_forecasts/` to you local `custom_components/` directory or install via [HACS](https://hacs.xyz/docs/faq/custom_repositories/) then restart.\n\n# USAGE\n**With apexcharts:** Add this apexcharts card:\n\n```\ntype: custom:apexcharts-card\nheader:\n  title: NSW1 RRP\napex_config:\n  xaxis:\n    type: datetime\n    min: auto\n    max: auto\n    tickAmount: 12\nnow:\n  show: true\n  label: now\n  color: var(--primary-color)\nseries:\n  - entity: sensor.actual_rrp_vic1\n    name: RRP Actual\n    type: line\n    show:\n      datalabels: false\n    data_generator: |\n      return entity.attributes.series.map(a =\u003e ({ x: new Date(a[0]), y: a[1] })).slice(-48);\n  - entity: sensor.forecast_rrp_vic1\n    name: RRP Forecast\n    type: line\n    show:\n      datalabels: false\n    data_generator: |\n      return entity.attributes.series.map(a =\u003e ({ x: new Date(a[0]), y: a[1] }));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgpinkus%2Fha_aemo_data_nem_forecasts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgpinkus%2Fha_aemo_data_nem_forecasts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgpinkus%2Fha_aemo_data_nem_forecasts/lists"}