{"id":14985144,"url":"https://github.com/piotrmachowski/home-assistant-custom-components-tge","last_synced_at":"2025-04-10T23:32:43.544Z","repository":{"id":255008706,"uuid":"848011540","full_name":"PiotrMachowski/Home-Assistant-custom-components-TGE","owner":"PiotrMachowski","description":"This custom integration retrieves energy prices from TGE.","archived":false,"fork":false,"pushed_at":"2025-04-05T00:26:23.000Z","size":40,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T01:23:47.218Z","etag":null,"topics":["custom-integration","energy","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/PiotrMachowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"piotrmachowski","custom":["buycoffee.to/piotrmachowski","paypal.me/PiMachowski","revolut.me/314ma"]}},"created_at":"2024-08-27T01:01:36.000Z","updated_at":"2025-04-05T00:26:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"50daf2c1-cad5-49af-a007-53127075ca1e","html_url":"https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"b41e7abb05f44358d79a837ad75bd52c5111cf30"},"previous_names":["piotrmachowski/home-assistant-custom-components-tge"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FHome-Assistant-custom-components-TGE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FHome-Assistant-custom-components-TGE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FHome-Assistant-custom-components-TGE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FHome-Assistant-custom-components-TGE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiotrMachowski","download_url":"https://codeload.github.com/PiotrMachowski/Home-Assistant-custom-components-TGE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248316848,"owners_count":21083515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["custom-integration","energy","home-assistant"],"created_at":"2024-09-24T14:10:22.726Z","updated_at":"2025-04-10T23:32:43.536Z","avatar_url":"https://github.com/PiotrMachowski.png","language":"Python","funding_links":["https://ko-fi.com/piotrmachowski","buycoffee.to/piotrmachowski","paypal.me/PiMachowski","revolut.me/314ma","https://ko-fi.com/piotrmachowski'","https://paypal.me/PiMachowski","https://www.buymeacoffee.com/PiotrMachowski"],"categories":[],"sub_categories":[],"readme":"[![HACS Custom][hacs_shield]][hacs]\n[![GitHub Latest Release][releases_shield]][latest_release]\n[![GitHub All Releases][downloads_total_shield]][releases]\u003c!-- piotrmachowski_support_badges_start --\u003e\n[![Ko-Fi][ko_fi_shield]][ko_fi]\n[![buycoffee.to][buycoffee_to_shield]][buycoffee_to]\n[![PayPal.Me][paypal_me_shield]][paypal_me]\n[![Revolut.Me][revolut_me_shield]][revolut_me]\n\u003c!-- piotrmachowski_support_badges_end --\u003e\n\n\n[hacs_shield]: https://img.shields.io/static/v1.svg?label=HACS\u0026message=Custom\u0026style=popout\u0026color=orange\u0026labelColor=41bdf5\u0026logo=HomeAssistantCommunityStore\u0026logoColor=white\n[hacs]: https://hacs.xyz/docs/faq/custom_repositories\n\n[latest_release]: https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE/releases/latest\n[releases_shield]: https://img.shields.io/github/release/PiotrMachowski/Home-Assistant-custom-components-TGE.svg?style=popout\n\n[releases]: https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE/releases\n[downloads_total_shield]: https://img.shields.io/github/downloads/PiotrMachowski/Home-Assistant-custom-components-TGE/total\n\n# TGE Integration\n\nThis custom integration retrieves energy prices from [TGE](https://tge.pl/energia-elektryczna-rdn).\n\n## Installation\n\n### Using [HACS](https://hacs.xyz/) (recommended)\n\nThis integration can be added to HACS as a [custom repository](https://hacs.xyz/docs/faq/custom_repositories):\n* URL: `https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE`\n* Category: `Integration`\n\nAfter adding a custom repository you can use HACS to install this integration using user interface.\n\n### Manual\n\nTo install this integration manually you have to download [*tge.zip*](https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE/releases/latest/download/tge.zip) and extract its contents to `config/custom_components/tge` directory:\n```bash\nmkdir -p custom_components/tge\ncd custom_components/tge\nwget https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE/releases/latest/download/tge.zip\nunzip tge.zip\nrm tge.zip\n```\n\n## Configuration\n\n### Config flow\n\nTo configure this integration go to: _Configuration_ -\u003e _Integrations_ -\u003e _Add integration_ -\u003e _TGE_.\n\nYou can also use following [My Home Assistant](http://my.home-assistant.io/) link\n\n[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=tge)\n\n\n### Value templates\n\nYou can override values returned by this integration by providing value templates for chosen sensors.\nThis functionality is available in \"Configure\" menu.\n\nWARNING: calculations are performed using zł/MWh and MWh - templates should return values using the same units. Conversion to units configured in the previous step is performed automatically in the later steps of data processing.\n\n[Example templates](https://github.com/PiotrMachowski/Home-Assistant-custom-components-TGE/discussions/categories/price-templates)\n\n### Displaying the data\n\nYou can display the data using [ApexCharts card](https://github.com/RomRider/apexcharts-card) using following configs:\n\n* Data for today:\n  ```yaml\n  type: custom:apexcharts-card\n  graph_span: 24h\n  span:\n    start: day\n  header:\n    show: true\n    title: TGE Fixing 1 Today [zł/MWh]\n  now:\n    show: true\n    label: Now\n  series:\n    - entity: sensor.tge_fixing_1_rate\n      type: column\n      name: Fixing 1\n      float_precision: 2\n      data_generator: |\n        return entity.attributes.prices_today.map((val, index) =\u003e {\n          return [new Date(val['time']), val['price']];\n        });\n  ```\n* Data for tomorrow:\n  ```yaml\n  type: custom:apexcharts-card\n  graph_span: 24h\n  span:\n    start: day\n    offset: +1d\n  header:\n    show: true\n    title: TGE Fixing 1 Tomorrow [zł/MWh]\n  now:\n    show: true\n    label: Now\n  series:\n    - entity: sensor.tge_fixing_1_rate\n      type: column\n      name: Fixing 1\n      float_precision: 2\n      data_generator: |\n        return entity.attributes.prices_tomorrow.map((val, index) =\u003e {\n          return [new Date(val['time']), val['price']];\n        });\n\n  ```\n\n\n\u003c!-- piotrmachowski_support_links_start --\u003e\n\n## Support\n\nIf you want to support my work with a donation you can use one of the following platforms:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003ePlatform\u003c/th\u003e\n    \u003cth\u003ePayment methods\u003c/th\u003e\n    \u003cth\u003eLink\u003c/th\u003e\n    \u003cth\u003eComment\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eKo-fi\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003ePayPal\u003c/li\u003e\n      \u003cli\u003eCredit card\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href='https://ko-fi.com/piotrmachowski' target='_blank'\u003e\u003cimg height='35px' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eNo fees\u003c/li\u003e\n      \u003cli\u003eSingle or monthly payment\u003c/li\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ebuycoffee.to\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eBLIK\u003c/li\u003e\n      \u003cli\u003eBank transfer\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://buycoffee.to/piotrmachowski\" target=\"_blank\"\u003e\u003cimg src=\"https://buycoffee.to/btn/buycoffeeto-btn-primary.svg\" height=\"35px\" alt=\"Postaw mi kawę na buycoffee.to\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ePayPal\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003ePayPal\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://paypal.me/PiMachowski\" target=\"_blank\"\u003e\u003cimg src=\"https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_37x23.jpg\" border=\"0\" alt=\"PayPal Logo\" height=\"35px\" style=\"height: auto !important;width: auto !important;\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eNo fees\u003c/li\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eRevolut\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eRevolut\u003c/li\u003e\n      \u003cli\u003eCredit Card\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://revolut.me/314ma\" target=\"_blank\"\u003e\u003cimg src=\"https://assets.revolut.com/assets/favicons/favicon-32x32.png\" height=\"32px\" alt=\"Revolut\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eNo fees\u003c/li\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n### Powered by\n[![PyCharm logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSourceSupport)\n\n\n[ko_fi_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=Ko-Fi\u0026color=F16061\u0026logo=ko-fi\u0026logoColor=white\n\n[ko_fi]: https://ko-fi.com/piotrmachowski\n\n[buycoffee_to_shield]: https://shields.io/badge/buycoffee.to-white?style=flat\u0026labelColor=white\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw1AUhU9TpaIVh1YQcchQnayIijhKFYtgobQVWnUweemP0KQhSXFxFFwLDv4sVh1cnHV1cBUEwR8QVxcnRRcp8b6k0CLGC4/3cd49h/fuA4R6malmxzigapaRisfEbG5FDLzChxB6MIZ+iZl6Ir2QgWd93VM31V2UZ3n3/Vm9St5kgE8knmW6YRGvE09vWjrnfeIwK0kK8TnxqEEXJH7kuuzyG+eiwwLPDBuZ1BxxmFgstrHcxqxkqMRTxBFF1ShfyLqscN7irJarrHlP/sJgXltOc53WEOJYRAJJiJBRxQbKsBClXSPFRIrOYx7+QcefJJdMrg0wcsyjAhWS4wf/g9+zNQuTE25SMAZ0vtj2xzAQ2AUaNdv+PrbtxgngfwautJa/UgdmPkmvtbTIEdC3DVxctzR5D7jcAQaedMmQHMlPSygUgPcz+qYcELoFulfduTXPcfoAZGhWSzfAwSEwUqTsNY93d7XP7d+e5vx+AIahcq//o+yoAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wETCy4vFNqLzwAAAVpJREFUOMvd0rFLVXEYxvHPOedKJnKJhrDLuUFREULE7YDCMYj+AydpsCWiaKu29hZxiP4Al4aWwC1EdFI4Q3hqEmkIBI8ZChWXKNLLvS0/Qcza84V3enm/7/s878t/HxGkeTaIGziP+EB918nawu7Dq1d0e1+2J2bepnk2jFEUVVF+qKV51o9neBCaugfge70keoxxUbSWjrQ+4SUyzKZ5NlnDZdzGG7w4DIh+dtZEFntDA98l8S0MYwctNGrYz9WqKJePFLq80g5Sr+EHlnATp+NA+4qLaZ7FfzMrzbMBjGEdq8GrJMZnvAvFC/8wfAwjWMQ8XmMzaW9sdevNRgd3MFhvNpbaG1u/Dk2/hOc4gadVUa7Um425qii/7Z+xH9O4jwW8Cqv24Tru4hyeVEU588cfBMgpPMI9nMFe0BkFzVOYrYqycyQgQJLwTC2cDZCPeF8V5Y7jGb8BUpRicy7OU5MAAAAASUVORK5CYII=\n\n[buycoffee_to]: https://buycoffee.to/piotrmachowski\n\n[buy_me_a_coffee_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=Buy%20me%20a%20coffee\u0026color=6f4e37\u0026logo=buy%20me%20a%20coffee\u0026logoColor=white\n\n[buy_me_a_coffee]: https://www.buymeacoffee.com/PiotrMachowski\n\n[paypal_me_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=PayPal.Me\u0026logo=paypal\n\n[paypal_me]: https://paypal.me/PiMachowski\n\n[revolut_me_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=Revolut\u0026logo=revolut\n\n[revolut_me]: https://revolut.me/314ma\n\u003c!-- piotrmachowski_support_links_end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrmachowski%2Fhome-assistant-custom-components-tge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrmachowski%2Fhome-assistant-custom-components-tge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrmachowski%2Fhome-assistant-custom-components-tge/lists"}