briis / hass-weatherflow

Home Assistant Integration for WeatherFlow Stations
MIT License
69 stars 11 forks source link

FR: Could we get sensors for high and low temps and a description of what the weather will look like? #49

Closed scstraus closed 11 months ago

scstraus commented 1 year ago

Hi,

First off, thanks for a great integration, it's serving me super well, and I find the forecasts to be a lot more accurate than any of the other weather integrations (and I've tried them all). As I am slowly preparing for the end of the dark sky integration, and this works better anyway, I thought I'd hit you up for a few more sensors if possible. I use these to control my heating system, so the increased accuracy from this integraiton would be super useful. A few of the ones that dark sky provides that would help me a lot are these ones:

Thanks for the consideration.

briis commented 1 year ago

While you wait for me to do this, you can actually really easy make these three sensors as template sensors yourself. I have added and example below:

- name: Temperature Day High
   unique_id: some_unique_id
   icon: mdi:thermometer
   state: >
      {{ "%0.1f" | format(state_attr('weather.weatherflow_day_based_forecast', 'forecast')[0].temperature | float(default=0) ) }}
- name: Temperature Day Low
   unique_id: some_unique_id
   icon: mdi:thermometer
   state: >
      {{ "%0.1f" | format(state_attr('weather.weatherflow_day_based_forecast', 'forecast')[0].templow | float(default=0) ) }}
- name: Current Condition
   unique_id: some_unique_id
   icon: mdi:weather-partly-cloudy
   state: >
      {{ state_attr('weather.weatherflow_day_based_forecast', 'forecast')[0].condition }}
briis commented 11 months ago

I have decided not to implement this. I suggest you use the above method, to get the sensors. Sorry.

scstraus commented 11 months ago

I did that already before submitting the FR, but I still think it should be a standard sensor as it's something everyone needs on their weather forecast card. Not all users are as good with templates as I am, and many weather forecast cards require this sensor.