Sensor history_stats

Hello,

I have this sensor :

 - platform: history_stats
    name: "Temps fonctionnement chauffe-eau"
    entity_id: sensor.chauffe_eau_fonctionnement
    state: "on"
    type: time
    start: "{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}"
    end: "{{ now() }}" 
    

But the output is like : 0.48

It’s 48 minutes ? 0.48 hours ? How can I have it like 48mn or 1h48 etc …

It is in hours. See this thread for how to achieve what you want.