For forecasting, I use the Australian Bureau of Meteorology integration - this gives me 100+ entities to work with including current observations and the 7-day forecast. There may be other sources available, but this integration has worked (mostly) well for me. As you see in the YAML, I’ve only imported the max/min temperatures for today/tomorrow as well as the short forecast provided by the BoM. Agree, working with these imported forecasts can be challenging and fills yours logs with errors at times.
My weather sensors are all set up on a separate ESP32, which I use for rain / rainfall / temp / humidity / pressure and other external sensors. For temp/humidity an SHT31 sensor (in a permeable & waterproof casing) is mounted in a custom Stevenson-type enclosure (made from inverted plastic pot saucers with 15mm spacers between each one). I’ve added a solar-powered fan to assist with airflow, this gives me a much more accurate external temperature reading than the commercial PWS I have mounted off the roof (which reads 1-2C too hot in full sun).
For rain I import both apparent (“it’s raining now”) and daily figures from custom sensors on the other ESP32, with a simple collector and two isolated probes to detect the first raindrops (via resistance measurement) and rainfall using a homemade tipping bucket with a Zigbee door sensor (YAML details covered ☔ DIY Zigbee rain gauge).
Feels-like temperature needs local temp/humidity (from SHT31) plus wind speed from my PWS, calculated using the formula provided by the BoM at www.bom.gov.au/info/thermal_stress. You need to calculate water vapour pressure first, then feels-like:
- sensor: # Calculate water vapour pressure required for "Feels like"
- name: "Water vapour pressure"
unique_id: id_wvp
unit_of_measurement: "hPa"
device_class: pressure
state: >-
{% set tmp = states('sensor.temp_sht3x') | float %}
{% set rh = states('sensor.humidity_sht3x') | float %}
{{ rh/100 * 6.105 * e**(17.27 * tmp / (237.7 + tmp)) }}
- sensor: # Use calculated water vapour pressure to determine feels_like
- name: "Feels like temp"
unique_id: temp_fl
unit_of_measurement: "°C"
device_class: temperature
icon: mdi:thermometer-lines
state: >-
{% set tmp = states('sensor.temp_sht3x') | float %}
{% set wvp = states('sensor.water_vapour_pressure') | float %}
{% set ws = states('sensor.pws_wind_speed') | float %}
{{ (tmp + 0.33 * wvp - (0.70 * ws / 3.6) - 4.00) | round(1) }}
Since documenting this project I’ve moved to a larger display (9cm ST7796) so it’s readily readable across the room. It’s probably my favourite smarthome device as it gets looked at multiple times every day!