Closed TheFes closed 1 month ago
Marked as draft for now, as I'm still working on it
@TheFes Thanks for your input! Let me know when you're finished then I can review the PR.
Done
Sorry, made a mistake with the T-shirt one
forgot to put everything under - sensor:
there. Maybe you can add it yourself, otherwise I can create a PR for it.
It should have been:
# Sourcecode by vdbrink.github.io
# configuration.yaml
template:
- sensor:
- name: "Wear outside"
unique_id: sensor_wear_outside
icon: mdi:tshirt-crew
state: >-
{% set temp = states('sensor.tempest_temperature_feels_like_rounded') | float %}
{% if temp <= 5 %}
winter jacket and hand gloves
{% elif temp <= 14 %}
softshell
{% elif temp <= 18 %}
thin jacket
{% else %}
T-shirt
{% endif %}
availability: "{{ 'sensor.tempest_temperature_feels_like_rounded' | has_value }}
I updated the page with your fix
Hi,
I've taken the liberty to make updates to your template page. Note that I'm not finished yet, I will continue when I find some more time.
I've rewritten the first part to the modern format, and also added some explanation on that. I also corrected some templates which were not correct (as I also mentioned on Facebook a few days ago).
Also added a
unique_id
everywhere, and added anavailability
template where needed.