Skip to content

Phase 4: Smart grid / energy tariff support (SG-Ready) #1376

Description

@liudger

Phase 4: Smart Grid / Energy Tariff Support

Priority: 🔵 Low
Scope: Library + HA integration
Depends on: Phase 2 (#1374)
Parent: #1371

Goal

Enable smart grid integration allowing the heating system to respond to energy tariffs (cheap/expensive electricity) via BSB-LAN's SG-Ready interface. This is increasingly relevant as more users combine heat pumps with solar PV and dynamic electricity tariffs.

Background

BSB-LAN supports the SG-Ready (Smart Grid Ready) interface, which is a German standard for heat pump demand response. It allows external systems to signal the heat pump to:

  • Block: Stop heating (grid overload)
  • Normal: Standard operation
  • Boost: Increase setpoints (cheap energy / solar surplus)
  • Max boost: Force maximum heating (very cheap energy)

New Parameters

Param ID Name Unit Description
3264 smart_grid_mode enum Current SG-Ready mode (0-3)
3265 smart_grid_status enum Smart grid status feedback
3266 smart_grid_boost_setpoint_offset K Temperature boost offset
3267 smart_grid_dhw_boost_setpoint °C DHW boost setpoint

SG-Ready Modes

Mode Signal Heat Pump Behavior
0 Block Compressor off (grid overload)
1 Normal Standard operation
2 Boost Increased setpoints (cheap tariff / solar)
3 Max boost Forced maximum output

Tasks

Library (python-bsblan)

  • Add smart grid params to constants.py
  • Create SmartGrid model in models.py
  • Add smart_grid() method to read status
  • Add set_smart_grid() method to write mode
  • Add enum mapping for SG-Ready modes
  • Add tests and fixtures
  • Run uv run prek run --all-files

HA Integration

  • Expose smart_grid_mode as a select entity (Block / Normal / Boost / Max Boost)
  • Expose smart_grid_status as a sensor entity
  • Create automation blueprints for common scenarios:
    • Solar surplus → Boost mode
    • Cheap tariff hours → Boost mode
    • Grid overload signal → Block mode
  • Add tests

Acceptance Criteria

  • Users can read current smart grid mode and status
  • Users can set smart grid mode from HA (select entity or service call)
  • Automations can control heat pump based on energy tariff / solar production
  • Gracefully handles devices without SG-Ready support (param validation skips)

Future Ideas

  • Integration with HA energy dashboard tariff tracking
  • Automatic switching based on Nordpool / Tibber / ENTSO-E prices
  • Solar surplus detection via HA energy sensors

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new-featureNew features or options.no-staleThis issue or PR is exempted from the stable bot.priority-lowNice addition, maybe... someday...

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions