Skip to content

Repository files navigation

Kamstrup-Radius component for ESPHome

ESPHome component for Kamstrup electricity meters provided by Radius in Denmark.

This project replaces Kamstrup-Radius-Interface. Be aware that ESP8266 version is in another branch. This branch is ESP32 only.

This project uses:

Hardware:

Connect any 3.3V ESP module's RX pin to the HAN DATA_OUT pin, and GND to GND.
HAN port
Since the HAN port only allows a 75mA power draw a WiFi ESP module cannot be directly powered from the port.\ There are two possibilities for port powered operation.
Using Thread instead of WiFi the ESP32-H2 keep the power budget down. Beware that only the ESP32-H2 has a low enought power consumption.
esp32h2
Alternatively, use a HAN module with an ESP module. There are many designs available..
HAN module
A design with ESP8266 compatible with the example file can be found in https://github.com/Asbjoern/Kamstrup-Radius-Interface/tree/master/pcb. There is a circuit to limit the power to 75mA and charge a supercapacitor for peak currents. The ESP module is supplied with a lower voltage to limit the overall power drawn, eliminating the need for sleep modes.

Please note that the Heartbeat and Fault LED are not implemented in this component to ensure universal compatibility.

Configuration:

See example_kamstrup-radius-*.yaml files for the full configuration of different compatible modules.

external_components:
  source: github://Asbjoern/ESPHome-Kamstrup-Radius@main

uart:
  rx_pin: GPIO13
  baud_rate: 2400

sensor:
  - platform: kamstrup-radius
    encryptionkey: "5AD84121D9D20B364B7A11F3C1B5827F"
    authenticationkey: "AFB3F93E3E7204EDB3C27F96DBD51AE0"
    activepowerimport:
      name: "Active power Import"
    activepowerexport:
      name: "Active power Export"
    activepowerimportl1:
      name: "Active power Import L1"
    activepowerexportl1:
      name: "Active power Export L1"
    activepowerimportl2:
      name: "Active power Import L2"
    activepowerexportl2:
      name: "Active power Export L2"
    activepowerimportl3:
      name: "Active power Import L3"
    activepowerexportl3:
      name: "Active power Export L3"
    reactivepowerimport:
      name: "Reactive power Import"
    reactivepowerexport:
      name: "Reactive power Export"
    powerfactorl1:
      name: "Power factor L1"
    powerfactorl2:
      name: "Power factor L2"
    powerfactorl3:
      name: "Power factor L3"
    powerfactortotal:
      name: "Power factor Total"
    voltagel1:
      name: "RMS voltage L1"
    voltagel2:
      name: "RMS voltage L2"
    voltagel3:
      name: "RMS voltage L3"
    currentl1:
      name: "RMS current L1"
    currentl2:
      name: "RMS current L2"
    currentl3:
      name: "RMS current L3" 
    activeenergyimport:
      name: "Active energy Import"
    activeenergyexport:
      name: "Active energy Export"
    activeenergyimportl1:
      name: "Active energy Import L1"
    activeenergyexportl1:
      name: "Active energy Export L1"
    activeenergyimportl2:
      name: "Active energy Import L2"
    activeenergyexportl2:
      name: "Active energy Export L2"
    activeenergyimportl3:
      name: "Active energy Import L3"
    activeenergyexportl3:
      name: "Active energy Export L3"
    reactiveenergyimport:
      name: "Reactive energy Import"
    reactiveenergyexport:
      name: "Reactive energy Export"

Only encryptionkey and authenticationkey are required. The rest is optional and depends on what data is needed.

About

ESPHome component for the Kamstrup electricity meter supplied by Radius in Denmark

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages