Dashboard météo all inclusive V2 (maj 02/08/23)

J’ai modifier l’icone, avec custom-ui GitHub - Mariusthvdb/custom-ui: Adapted Custom-ui for HA 110+ / HA 2021.6.

j’ai ajouter ces lignes dans le configuration.yaml:

homeassistant:
  customize: !include customize.yaml

j’ai créer un fichier customize.yaml dans /config/.
dans le customize.yaml, rajoute ces lignes:

sensor.season:
  templates:
    entity_picture: >
      if (state === 'winter') return '/local/images/hiver.png';
      if (state === 'spring') return '/local/images/printemps.png';
      if (state === 'summer') return '/local/images/été.png';
      return '/local/images/automne.png';

Mettre les .png dans /config/www/images/.
printemps
été
automne
hiver

Pour le soleil:

sun.sun:
  templates:
    entity_picture: >
      if (state === 'above_horizon') return '/local/weather/day.svg';
      return '/local/weather/night.svg';
2 « J'aime »