Date in local language

If you use the template I suggested in a Template Sensor then it will not update periodically because the template contains no entities, only the now() function. You can learn more about it here: Templates without entities using now()

To ensure this Template Sensor gets updated, we specify an entity_id. The template only needs to be updated once a day, at the beginning of each day. There is an entity that does that and it’s sensor.date which updates at the start of each new day. To use sensor.date, we first have to define it. The instructions can be found here: Time & Date

sensors:
  - platform: time_date
    display_options:
      - 'date'

  - platform: template
    sensors:
      jourFR:
        friendly_name: 'Jour FR'
        entity_id: sensor.date
        value_template: >-
          {% set jours = ["Lundi", "Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"] %}
          {{ jours[now().weekday()] }}
2 Likes