From 415ddfa7ecb64dc7533ab474c60bd8f1801a1923 Mon Sep 17 00:00:00 2001 From: golles Date: Sat, 4 Nov 2023 13:06:22 +0000 Subject: [PATCH] Remove `plants.jinja` --- README.md | 1 - custom_templates/plants.jinja | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100644 custom_templates/plants.jinja diff --git a/README.md b/README.md index c2b1283..54de31d 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ For the same reason as for blueprints, I've created a few [custom_templates](cus | [automations.jinja](custom_templates/automations.jinja) | Automation helpers | | [home_connect.jinja](custom_templates/home_connect.jinja) | Home Connect helpers | | [nl.jinja](custom_templates/nl.jinja) | Dutch translation helpers | -| [plants.jinja](custom_templates/plants.jinja) | Plant sensor helpers | If you like any of these custom templates, then you can download them into your own Home Assistant. [Report an issue with a custom template](https://github.com/golles/Home-Assistant-Config/issues/new?assignees=&labels=custom_template&projects=&template=custom_template.yaml). diff --git a/custom_templates/plants.jinja b/custom_templates/plants.jinja deleted file mode 100644 index 0bbd18a..0000000 --- a/custom_templates/plants.jinja +++ /dev/null @@ -1,25 +0,0 @@ -{# -Make up the state of a plant, the problem attribute is taken into account. The result is in Dutch. -entity: the entity id of the sensor. -#} -{% macro state(entity) %} -{% if is_state(entity, "problem") %} -{% if is_state_attr(entity, "problem", "moisture unavailable, temperature unavailable, conductivity unavailable, brightness unavailable") %} - Onbekend -{% else %} - {{ - state_attr(entity, "problem") - | replace("moisture high", "te vochtig") - | replace("moisture low", "te droog") - | replace("conductivity high", "hoge geleidbaarheid") - | replace("conductivity low", "lage geleidbaarheid") - | replace("temperature high", "te warm") - | replace("temperature low", "te koud") - | replace("brightness high", "te licht") - | replace("brightness low", "te donker") - }} -{% endif %} -{% else %} -{{ states(entity) }} -{% endif %} -{% endmacro %} \ No newline at end of file