diff --git a/README.md b/README.md index 3e7765a..a4429f1 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,8 @@ Go to Configuration -> Integrations and click on "add integration". Then search ### Configuration Variables - **market_id**: Enter your rewe market id -### Sample Lovelace card +### Lovelace cards +## Sample Lovelace card from KrizzeOne Provided by [KrizzeOne](https://github.com/FaserF/ha-rewe/issues/2#issuecomment-1360129338): @@ -69,9 +70,9 @@ Provided by [KrizzeOne](https://github.com/FaserF/ha-rewe/issues/2#issuecomment- {%- set product_list_loop = state_attr('sensor.rewe_440421', 'discounts') -%} {%- for product in product_list_loop -%} {% if 'Süßes & Salziges' in product.category and product.product != '' %} -| | {{product.product }} -| ![badge](https://badgen.net/badge/{{ product.price.price | urlencode }}€/{{ product.price.regularPrice | urlencode }}{%- if 'Statt' in product.price.regularPrice -%}€{%- endif -%}/red) -| {%- endif -%} +| | {{product.product }} +| ![badge](https://badgen.net/badge/{{ product.price.price | urlencode }}€/{{ product.price.regularPrice | urlencode }}{%- if 'Statt' in product.price.regularPrice -%}€{%- endif -%}/red) +| {%- endif -%} {%- endfor -%} ``` _Downsides / Considerations:_ @@ -81,6 +82,11 @@ _Downsides / Considerations:_ - Product images aren't square all the time. Sometimes they look a bit distorted - 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. +## Sample Lovelace card from schblondie +Provided by [schblondie](https://github.com/schblondie/ha-rewe-discounts-card): + + + ### Automations in HA A full automation example for HA would be: