Skip to content

Instantly share code, notes, and snippets.

@JohanAlvedal
JohanAlvedal / Predbat Charging & Discharging Control.yaml
Last active November 4, 2025 12:23
Predbat Charging & Discharging Control (Huawei Solar)
# =============================
# Blueprint — Predbat Charging & Discharging Control (Huawei Solar)
# =============================
blueprint:
name: Predbat Charging & Discharging Control (Huawei Solar) — basic
description: |
Blueprint som styr laddning/urladdning med dag/natt-fönster, hold charging och
car charging slot.
Antaganden (Predbat-standard):
• predbat.status
@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 October 9, 2025 14:16
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 (15-min safe)
description: >
Blockerar värme (sätter virtuell temperatur) under de dyraste timmarna baserat
på Nordpool-priser. Under billiga perioder speglar den utetemperaturen med
ett valt uppdateringsintervall. Fungerar med 60- och 15-minuterspriser samt DST.
domain: automation
input:
grid_area:
name: Grid Area Sensor