Skip to content

Instantly share code, notes, and snippets.

@JohanAlvedal
JohanAlvedal / Predbat Charging & Discharging Control.yaml
Last active August 26, 2025 04:23
Predbat Charging & Discharging Control (Huawei Solar)
# =============================
# Blueprint — Predbat Charging & Discharging Control (Huawei Solar)
# with optional hysteresis (start/stop) + cooldown
# =============================
blueprint:
name: Predbat Charging & Discharging Control (Huawei Solar) — hysteresis + cooldown
description: |
Adjustable hysteresis and cooldown with a master switch:
• enable_hysteresis: turn ON/OFF hysteresis + cooldown
• hysteresis_start_pct: start charging only if SoC <= (target - start)
@JohanAlvedal
JohanAlvedal / pumpsteer_temperature_forcast.yaml
Created August 14, 2025 12:04
A comprehensive Home Assistant blueprint that extracts the next 24 hours of temperature forecasts from any weather entity and saves them as a comma-separated string in an input_text entity.
blueprint:
name: Extract 24 Hourly Temperatures (Sorted)
description: >
Fetches the next 24 hours of temperature forecasts from any weather entity
and saves them to an input_text in comma-separated format "26.8,26.6,26.8,...".
Sorts the forecast by datetime to ensure chronological order from current time forward.
Perfect for feeding temperature data to other automations, scripts, or dashboards.
domain: automation
input:
weather_entity:
@JohanAlvedal
JohanAlvedal / block_heat.yaml
Last active December 5, 2023 18:00
This blueprints uses the nordpool integration and lets you choose howe many hours you will define as expesive, and make a sensor block temperature based on that information.
blueprint:
name: Block heat
description: >
This blueprints uses the nordpool integration and lets you choose howe
many hours you will define as expesive, and make a sensor block temperature based on that information.
In order for this blueprint to work, the following elements must be met.
- Nordpool integration
- An outdoor sensor that has the actual outdoor temperature
- A sensor that can manipulate the outdoor temperature, for example https://www.ohmigo.io/product-page/ohmigo-ohm-on-wifi or equivalent