{"id":21379059,"url":"https://github.com/faserf/ha-rewe","last_synced_at":"2025-07-13T11:32:25.119Z","repository":{"id":105079728,"uuid":"521964078","full_name":"FaserF/ha-rewe","owner":"FaserF","description":"Rewe Discounts Homeassistant Integration","archived":true,"fork":false,"pushed_at":"2024-10-23T19:17:51.000Z","size":1240,"stargazers_count":16,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T23:56:40.217Z","etag":null,"topics":["hacs-integration","homeassistant"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FaserF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"faserf","custom":"https://paypal.me/FaserF"}},"created_at":"2022-08-06T14:09:47.000Z","updated_at":"2025-01-23T22:39:42.000Z","dependencies_parsed_at":"2024-05-09T03:26:28.644Z","dependency_job_id":"1c313942-c420-40c9-8a67-833ffae51263","html_url":"https://github.com/FaserF/ha-rewe","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/FaserF/ha-rewe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaserF%2Fha-rewe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaserF%2Fha-rewe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaserF%2Fha-rewe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaserF%2Fha-rewe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FaserF","download_url":"https://codeload.github.com/FaserF/ha-rewe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FaserF%2Fha-rewe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265132069,"owners_count":23716099,"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":["hacs-integration","homeassistant"],"created_at":"2024-11-22T10:16:55.535Z","updated_at":"2025-07-13T11:32:24.644Z","avatar_url":"https://github.com/FaserF.png","language":"Python","funding_links":["https://github.com/sponsors/faserf","https://paypal.me/FaserF"],"categories":[],"sub_categories":[],"readme":"[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)\n\n# CURRENTLY NOT WORKING ANYMORE, SINCE API HAS BEEN TAKEN DOWN! SEE https://github.com/FaserF/ha-rewe/issues/22\n\n# Rewe.de Homeassistant Discounts Sensor\nGets discounts and highlights from the [rewe.de API](https://shop.rewe.de/mc/api/markets-stationary).\n\n\u003cimg src=\"images/sensor.png\" alt=\"Rewe.de Sensor\" width=\"300px\"\u003e\n\n\n\n\nThis integration provides the following informations with a refresh interval of 24 hours until now:\n\n\nSensors:\n\n- sensor.marketid: Amount of currently valid offers\n\nSensor Attributes:\n\n- market_id: Your rewe market id\n- valid until: Valid until Discount Date\n- discounts: Discounts currently valid\n    - attribute product name\n    - attribuite discount price\n    - attribute picture link\n\n## Installation\n### 1. Using HACS (recommended way)\n\nThis integration is a official HACS Integration.\n\nOpen HACS then install the \"Rewe\" integration.\n\nIf you use this method, your component will always update to the latest version.\n\n### 2. Manual\n\n- Download the latest zip release from [here](https://github.com/FaserF/ha-rewe/releases/latest)\n- Extract the zip file\n- Copy the folder \"rewe\" from within custom_components with all of its components to `\u003cconfig\u003e/custom_components/`\n\nwhere `\u003cconfig\u003e` is your Home Assistant configuration directory.\n\n\u003e__NOTE__: Do not download the file by using the link above directly, the status in the \"master\" branch can be in development and therefore is maybe not working.\n\n## Configuration\n\nGo to Configuration -\u003e Integrations and click on \"add integration\". Then search for Rewe.\n\n### Getting the rewe market ID\n1. Go to the [REWE Marktsuche](https://www.rewe.de/marktsuche)\n2. Enter your city or PLZ and choose your desired REWE\n3. Select \"Marktinfos\"\n4. Copy the marked id from the URL\n\n\u003cimg src=\"images/market_id.png\" alt=\"Rewe.de Sensor\" width=\"300px\"\u003e\n\n### Configuration Variables\n- **market_id**: Enter your rewe market id\n\n### Lovelace cards\n## Sample Lovelace card from KrizzeOne\nProvided by [KrizzeOne](https://github.com/FaserF/ha-rewe/issues/2#issuecomment-1360129338):\n\n\u003cimg src=\"https://user-images.githubusercontent.com/65257000/208757904-665cd0eb-4dd9-4d03-b40a-6cf027d38c86.png\" width=\"400px\"\u003e\n\n```yaml\n# **Süßes und Salziges**\n|            |        |       |\n| :------------: |:------------- | -----:|\n {%- set product_list_loop =  state_attr('sensor.rewe_440421', 'discounts') -%}\n\n{%- for product in product_list_loop -%} {% if 'Süßes \u0026 Salziges' in product.category and product.product != '' %}\n| \u003cimg src=\"{{product.picture_link[0] }}\" width=\"50\" height=\"50\"/\u003e | {{product.product }}\n| ![badge](https://badgen.net/badge/{{ product.price | urlencode }}/€)\n|  {%- endif -%}\n{%- endfor -%}\n```\n_Downsides / Considerations:_\n\n- It takes up to 4sec to load the content if you choose multiple product categories\n- Price tags are build via https://badgen.net and most of the time you have to reload your lovelace page to get all badges\n- Product images aren't square all the time. Sometimes they look a bit distorted\n- By using table layout as I do, Lovelace cards looks different if you have short/long product names. This drives me crazy and I hope I will have a more robust solution in the future.\n\n## Sample Lovelace card from schblondie\nProvided by [schblondie](https://github.com/schblondie/ha-rewe-discounts-card):\n\n\u003cimg src=\"https://private-user-images.githubusercontent.com/80481720/314297813-5c9525a0-74b0-4e38-96e7-264ba4d619d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTE1MzIxOTgsIm5iZiI6MTcxMTUzMTg5OCwicGF0aCI6Ii84MDQ4MTcyMC8zMTQyOTc4MTMtNWM5NTI1YTAtNzRiMC00ZTM4LTk2ZTctMjY0YmE0ZDYxOWQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzI3VDA5MzEzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmOWY3MzkwYzA5NWVmYzUyODBjNzllM2IzOGIxMTM4Mzk4NzJjMDM4ZDgxNWUyZTFhMzNjNDJiMjExZTA2Y2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uJvAQ7_wGWO1Jri6N2Mt4XJaVn5ZQhJsWqQJVkINIkk\" width=\"400px\"\u003e\n\n### Automations in HA\nA full automation example for HA would be:\n\n```yaml\nmessage: \u003e\n    Neues Angebot im Rewe Prospekt für\n    {%- set product_list_loop =  state_attr('sensor.rewe_440421', 'discounts') -%}\n    {%- for product in product_list_loop -%}\n    {% if 'Spezi' in product.product or 'Käse' in product.product or 'Nutella' in product.product %}\n\n    {{product.price.price }} € - {{product.product }}\n\n    {{ product.picture_link[0] }}\n    {%- endif -%}\n    {%- endfor -%}\n```\n\n## Bug reporting\nOpen an issue over at [github issues](https://github.com/FaserF/ha-rewe/issues). Please prefer sending over a log with debugging enabled.\n\nTo enable debugging enter the following in your configuration.yaml\n\n```yaml\nlogger:\n    logs:\n        custom_components.rewe: debug\n```\n\n## Thanks to\nThis integration uses the great python code from [Foo-Git Rewe-discounts](https://github.com/foo-git/rewe-discounts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaserf%2Fha-rewe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaserf%2Fha-rewe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaserf%2Fha-rewe/lists"}