Update README.md
This commit is contained in:
@@ -2,43 +2,31 @@
|
|||||||
|
|
||||||
Store long-term weather records (such as high/low temperatures, maximum wind speed, and rainfall totals) in Home Assistant using standard helpers and automations.
|
Store long-term weather records (such as high/low temperatures, maximum wind speed, and rainfall totals) in Home Assistant using standard helpers and automations.
|
||||||
|
|
||||||
## Prerequisites
|
### 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).
|
||||||
|
|
||||||
Before installing the automations, you need to create the required helper entities. Go to **Settings > Devices & Services > Helpers** in Home Assistant and create the following items:
|
### Step Two: Configure `configuration.yaml`
|
||||||
|
Add the following include lines to your `configuration.yaml` so Home Assistant loads the required helpers:
|
||||||
|
|
||||||
### Input Numbers
|
```yaml
|
||||||
* `input_number.day_temp_max`
|
input_number: !include weather_numbers.yaml
|
||||||
* `input_number.day_temp_min`
|
input_datetime: !include weather_datetimes.yaml
|
||||||
* `input_number.day_wind_max`
|
```
|
||||||
* `input_number.highest_daily_recorded_rainfall`
|
|
||||||
* `input_number.highest_weekly_recorded_rainfall`
|
### Step Three: Create Automations
|
||||||
* `input_number.highest_monthly_recorded_rainfall`
|
|
||||||
* `input_number.highest_recorded_temp`
|
For each of the 6 automation files provided in the repository:
|
||||||
* `input_number.lowest_recorded_temp`
|
|
||||||
* `input_number.highest_recorded_wind_speed`
|
1. Go to **Settings > Automations & Scenes > Create Automation > Create New Automation** in your Home Assistant UI.
|
||||||
* `input_number.last_month_rain`
|
2. Click the three dots in the top right corner and select **Edit in YAML**.
|
||||||
* `input_number.rain_yesterday`
|
3. Replace with the contents of the respective automation file, paste it into the editor, and replace the placeholder sensor tags (e.g., `<OUTDOOR TEMP SENSOR>`, `<WIND SENSOR>`, `<DAILY RAIN SENSOR>`, etc.) with your actual weather station entity IDs.
|
||||||
|
4. Save the automation.
|
||||||
|
|
||||||
|
*Note: In the temperature and wind records automation, ensure your notification service call matches your preferred platform (such as `gotify.send`, `notify.persistent_notification`, etc.).*
|
||||||
|
|
||||||
### Input Datetimes
|
|
||||||
* `input_datetime.day_temp_max_time`
|
|
||||||
* `input_datetime.day_temp_min_time`
|
|
||||||
* `input_datetime.highest_daily_rainfall_date`
|
|
||||||
* `input_datetime.highest_weekly_rainfall_date`
|
|
||||||
* `input_datetime.highest_monthly_rainfall_date`
|
|
||||||
* `input_datetime.highest_temp_date`
|
|
||||||
* `input_datetime.lowest_temp_date`
|
|
||||||
* `input_datetime.highest_wind_speed_date`
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
1. Create all the helper entities listed above.
|
|
||||||
2. Copy the automation files into your Home Assistant `automations.yaml` or include them via separate automation files.
|
|
||||||
3. **Important:** Open the imported automations and replace the placeholder sensor entities (e.g., `gw1100a_v2_2_3_###`) with your actual weather station entity IDs.
|
|
||||||
4. Reload your automations in Home Assistant.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
[](https://ko-fi.com/theunknownuniverse)
|
[](https://ko-fi.com/theunknownuniverse)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user