r-renato / ha-climacell-weather

Climacell weather provider integration is a custom component for Home Assistant. The climacell platform uses the Climacell API as a source for meteorological data for your location.
MIT License
46 stars 10 forks source link

Feature request - Actual time rather than 0h, 1h, 2h, etc of hourly forcasts #28

Open nytram-md opened 3 years ago

nytram-md commented 3 years ago

Hi

Is there any chance you can make the friendly name to say ie 12:00, 13:00, 14:00 for the hourly forecasts rather than 0h,1h,2h,3h, etc ?

I tried to make a friendly_name_template to say "Rainfall {{ now().hour }} and {{ now().hour +1 }}" for 1 hour and then "Rainfall {{ now().hour }} and {{ now().hour +2 }}" for 2 hours, etc

Ive got some friendly_name_templates for individual sensors but could not find a way to do this as its automated

If its possible, I guess the day would be possible too for daily forecasts (not checked this out yet, so it might already do it)

Thanks again

Martyn