Twente milieu problem

Hello,

Whi can help me.
I installed twente milieu for pickup garbage data.
But the data is firts year month day
Is ir possible to changw it to day month year?
And one of them is not working look picture

I had the same problem and solved it using a template sensor to change it to DD-MM-YYYY although it would be better if it’s solved in twente milieu itself.

sensor:
  - platform: template
      sensors:
        non_recyclable_waste_pickup_date:
          friendly_name: "Non Recyclable"
          value_template: '{{ strptime(states.sensor.non_recyclable_waste_pickup.state, "%Y-%m-%d").strftime("%d-%m-%Y") }}'

Ok thanks,
Did al the dates worked for u?

And with youre option is it possible to use own icons local i did?

I have some troubles with the paper collection state, it stays ‘unknown’.

I’ve added some custom pictures to the “config/www/icons” folder and used the following template sensor:

  - platform: template
    sensors:
      non_recyclable_waste_pickup_date:
        friendly_name: "Non Recyclable"
        entity_picture_template: /local/icons/waste_non_recyclable.png
        value_template: '{{ strptime(states.sensor.non_recyclable_waste_pickup.state, "%Y-%m-%d").strftime("%d-%m-%Y") }}'
      plastic_waste_pickup_date:
        friendly_name: "Plastic"
        entity_picture_template: /local/icons/waste_plastic.png
        value_template: '{{ strptime(states.sensor.plastic_waste_pickup.state, "%Y-%m-%d").strftime("%d-%m-%Y") }}'
      organic_waste_pickup_date:
        friendly_name: "Organic"
        entity_picture_template: /local/icons/waste_organic.png
        value_template: '{{ strptime(states.sensor.organic_waste_pickup.state, "%Y-%m-%d").strftime("%d-%m-%Y") }}'
      paper_waste_pickup_date:
        friendly_name: "Paper"
        entity_picture_template: /local/icons/waste_paper.png
        value_template: '{{ strptime(states.sensor.paper_waste_pickup.state, "%Y-%m-%d").strftime("%d-%m-%Y") }}'

Result in lovelace using the glance card:
Garbage%20collect%20hassio

Ok looks good.

Thanks for youre help.

This is my dashboard at the moment

Hello,

I started new with home assistant.
And used the twente milieu plugin.
it works. but how can i change the date to Day month year.
and where i have to do it? in configuration.yaml?

and how to change the icons. i have own icons.

Look up in this thread…

I know but don’t understand

Study the documents about templates here https://www.home-assistant.io/docs/configuration/templating/ and sensors, here https://www.home-assistant.io/integrations/sensor/.

where do i have to change it?

i don’t understand