32 lines
1.5 KiB
Markdown
32 lines
1.5 KiB
Markdown
# Home Assistant Weather Records
|
|
|
|
Store long-term weather records (such as high/low temperatures, maximum wind speed, and rainfall totals) in Home Assistant using standard helpers and automations.
|
|
|
|
### Step One: Add Helper Files
|
|
Place `weather_numbers.yaml` and `weather_datetimes.yaml` in your main Home Assistant configuration directory (where your configuration.yaml is located).
|
|
|
|
### Step Two: Configure configuration.yaml
|
|
Add the following include lines to your `configuration.yaml` so Home Assistant loads the required helpers:
|
|
|
|
```yaml
|
|
input_number: !include weather_numbers.yaml
|
|
input_datetime: !include weather_datetimes.yaml
|
|
```
|
|
|
|
### Step Three: Create Automations
|
|
|
|
1. Use the 6 automation files `daily_high_low_temp.yaml` `day_wind_max.yaml` `rain_records.yaml` `set_rain_month.yaml` `set_rain_yesterday.yaml` `temp_wind_records.yaml` to create 6 new automations.
|
|
2. Go to **Settings > Automations & Scenes > Create Automation > Create New Automation** in your Home Assistant UI.
|
|
3. Click the three dots in the top right corner and select **Edit in YAML**.
|
|
4. Replace with the contents of the respective automation file, paste it into the editor.
|
|
5. Replace the placeholder sensor tags (e.g., `<OUTDOOR TEMP SENSOR>`) with your sensor entities. Can be done in YAML or GUI.
|
|
6. Where notifications are used, ensure that your correct method is selected, this is easier in the GUI.
|
|
7. Save the automation.
|
|
|
|
|
|
---
|
|
|
|
|
|
[](https://ko-fi.com/theunknownuniverse)
|
|
|
|
https://unknownuniverse.uk |