Skip to content

trandus/hass-blueprints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 trandus' Home Assistant Blueprints

Collection of Home Assistant automation blueprints focused on practical home automations, including thermostat calibration and periodic low-battery reporting.

Some blueprints in this repository may be based on and modified from the Awesome HA Blueprints project by EPMatt. Attribution and original-source links are provided in the affected blueprint files.

🚀 Features

Valve temperature offset calibration

  • automatically calculates the offset value from the difference between the external sensor and the valve's built-in sensor,
  • applies an optional manual correction (bias) before rounding so you can fine-tune how aggressively the valve heats,
  • rounds the offset to the increment supported by the device (for example 0.5 °C or 1.0 °C),
  • writes the calculated offset to the corresponding number entity (*_local_temperature_offset) of the device,
  • includes a basic time lock to limit how often the value is updated (minimum every 5 minutes by default),
  • skips updates when source sensor values are unavailable/invalid and avoids writing unchanged offset values,
  • clamps calculated offset to the target entity min/max range when those limits are exposed by the integration.

Periodic low battery report

  • Sends reports on a daily, weekly, or monthly schedule.
  • Supports per-sensor battery thresholds in range 0..100% (default <= 1%).
  • Ignores unavailable battery sensors by default, so report generation is not interrupted by missing sensor state.
  • Can optionally include unavailable state per sensor in the low-battery report output.
  • Can notify phone(s), Home Assistant persistent notifications, or both.

📁 Repository structure

blueprints/
└── automation/
    ├── battery_low_level_report/
    │   └── periodic_low_battery_report.yaml
    ├── controller_ikea_e2201/
    │   └── ikea_e2201_rodret_dimmer.yaml
    └── valve_temperature_calibration/
        └── valve_temperature_offset_calibration.yaml

If new blueprints are added in the future, each will be stored in its own subdirectory under blueprints/automation/.

🗂 Blueprint catalog

Blueprint Version File Download link Description
Controller - IKEA E2201 RODRET Dimmer 2025.03.20c (modified fork) ikea_e2201_rodret_dimmer.yaml Download Controller automation for IKEA RODRET (E2201) with short/long/release/double actions, based on and modified from EPMatt's Awesome HA Blueprints.
Periodic low battery report 0.2.0 periodic_low_battery_report.yaml Download Sends a daily/weekly/monthly low-battery report with per-sensor thresholds and optional phone/persistent notifications.
Valve temperature offset calibration 0.2.0 valve_temperature_offset_calibration.yaml Download Keeps the valve calibration aligned with an external temperature sensor, allows an optional bias, and rounds the offset to the valve's supported step.

📦 HACS installation (repository)

This repository is structured as a standard HACS Blueprint repository.

  1. In Home Assistant open HACSCustom repositories.
  2. Add https://github.com/trandus/hass-blueprints.
  3. Select repository type: Blueprint.
  4. Install the repository from HACS.

📥 Installing blueprints in Home Assistant

Follow the steps below to add any blueprint from this repository directly through the Home Assistant interface.

  1. Copy the import link
    • Use one of the direct download links from the Blueprint catalog table above.
    • If you prefer, open the blueprint file in blueprints/automation/... and click the Raw button in the GitHub toolbar to copy the URL from your browser's address bar.
  2. Start the import in Home Assistant
    • In Home Assistant, go to SettingsAutomations & ScenesBlueprints.
    • Click Import Blueprint in the upper-right corner.
  3. Paste the GitHub URL
    • Paste the copied raw GitHub URL into the URL field.
    • Confirm by pressing Preview. Home Assistant loads the blueprint metadata and shows a summary.
  4. Finish the import
    • Review the details and click Import. Home Assistant saves the blueprint under SettingsAutomations & ScenesBlueprints.
  5. Create an automation
    • Click Create Automation on the confirmation dialog or return later to SettingsAutomations & ScenesAutomations and choose Create automationStart with a blueprint.
    • Select the newly imported blueprint and configure the required inputs.

Tip: When an update is available, go to SettingsAutomations & ScenesBlueprints, open the blueprint, and choose Update blueprint from the menu to re-download it from GitHub. Manual file management is also possible if you prefer, but it is not covered here.

🔧 Blueprint configuration

Periodic low battery report

The blueprint requires the following inputs:

  1. Report frequency – choose Daily, Weekly, or Monthly.
  2. Report time – set the time when the report should be generated.
  3. Weekday for weekly report – used only when frequency is set to weekly.
  4. Day of month for monthly report – used only when frequency is set to monthly.
  5. Monitored batteries with individual thresholds – provide a YAML list of battery sensors, each with its own optional settings.
    • battery_sensor – sensor entity with battery level.
    • threshold – value from 0 to 100 (%), step 1; if not provided, default threshold 1 is used (<= 1%).
    • include_unavailable – optional boolean (true/false); when set to true, a sensor in unavailable state is included in the report message.
  6. Phone notification action(s) – optional phone notification action(s), usually notify.mobile_app_*.
  7. Send Home Assistant persistent notification – if enabled, creates a persistent notification inside Home Assistant.

Example configuration for monitored batteries:

- battery_sensor: sensor.kitchen_remote_battery
  threshold: 5
  include_unavailable: false
- battery_sensor: sensor.window_sensor_battery
  threshold: 1
  include_unavailable: true

The report message includes either:

  • a list of sensors with battery levels below or equal to each sensor threshold,
  • optionally (per sensor) entries for sensors currently in unavailable state,
  • or a single line stating that no low battery levels were detected.

Valve temperature offset calibration

The blueprint requires the following inputs:

  1. Thermostatic valve – select the climate entity that represents the valve you want to calibrate. You can find it under SettingsDevices & Services, open the device for your valve, and copy the entity ID displayed next to the climate entity (for example, climate.living_room_valve).
  2. External temperature sensor – choose a sensor entity that reports the actual room temperature. Look it up on the SettingsDevices & Services page or via the SettingsDevices list, then copy the entity ID (for example, sensor.living_room_temperature). Make sure the sensor updates regularly and uses the temperature device class.
  3. Offset entity – select the number entity that stores the offset value for the valve. On the valve's device page, look for an entity with a name similar to Local temperature offset. If there are multiple offset entities, choose the one linked to the climate entity you are calibrating. You can confirm the entity ID (for example, number.living_room_valve_local_temperature_offset) in the Developer ToolsStates view.
  4. Minimum interval between updates – set the number of seconds that must pass before a new offset can be written (defaults to 300 seconds). This prevents rapid changes that could spam the device. If you are unsure, keep the default value or increase it if your device reacts slowly to adjustments. The automation will ignore triggers that occur more frequently than this interval.
  5. Rounding step – define the increment that the calculated offset should be rounded to (default 1.0). Open the offset entity in the UI and check the Step attribute to see what increments the device supports. Many valves only allow full degrees (1.0), while others support finer steps such as 0.5 or 0.1. Enter the same value here to avoid rejected updates.
  6. Manual correction (bias) – optionally add a positive or negative bias (default 0.0). Positive values (for example +0.3) make the valve assume the room is warmer and therefore reduce heating sooner. Negative values (for example -0.3) make the valve assume the room is cooler and therefore prolong heating. Adjust in small increments and observe the results for a few heating cycles.

Tip: After saving the automation, you can monitor the offset entity in Developer ToolsStates to verify that the value is being updated according to the configured interval and step.

ℹ️ How it works

The automation performs a straightforward calculation:

raw_offset = external_sensor_temperature - (valve_temperature - current_offset)
adjusted_offset = raw_offset + manual_correction
new_offset = round_to_step(adjusted_offset, rounding_step)

The result is stored in the offset entity. The automation waits for the specified interval before attempting the next update to limit the number of write operations.

About

Automatically adjusts the temperature offset of thermostat valves in Home Assistant using readings from an external room temperature sensor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors