Skip to content

HG_LM_Power – Power measurement

Reading time < 1 minute

Updated – January 12, 2023

This program is used to record and control the maximum power consumption permitted in terms of security.

If the maximum permissible current is exceeded, consumers and/or available power levels are switched off or on.

  • Installed hardware
    – Homematic 4-way relay module HM-LC-Sw4-WM
    – Homematic DIN rail switching actuator with power measurement HM-ES-PMSw1-DR
  • System variables to be created
    – Var_HG_LM_POWER (real type)
    – Var_HG_LM_VOLTAGE (real type)
    – HG_LM_POWER (to display the value in the web GUI)
    – HG_LM_VOLTAGE (to display the value in the web GUI)
  • Programs to be created
    – SV_IT (system variable internal temperature)
  • Channel labels
    – / –

The program:

Program – HG_LM_Power – Determine AC measurement data

The code:
real Var_HG_LM_POWER;
real Var_HG_LM_VOLTAGE
;

var HG_LM_POWER;
var HG_LM_VOLTAGE;

Var_HG_LM_POWER = dom.GetObject("BidCos-RF.TEQ0864424:2.POWER").Value();
WriteLine("Var_HG_LM_POWER");WriteLine(Var_HG_LM_POWER);
dom.GetObject("HG_LM_POWER").State(Var_HG_LM_POWER);

Var_HG_LM_VOLTAGE = dom.GetObject("BidCos-RF.TEQ0864424:2.VOLTAGE").Value();
WriteLine("Var_HG_LM_VOLTAGE");WriteLine(Var_HG_LM_VOLTAGE);
dom.GetObject("HG_LM_VOLTAGE").State(Var_HG_LM_VOLTAGE);

The output of the script (if the lines WriteLine(" ... ") are not commented out):

Var_HG_LM_POWER
210.750000
Var_HG_LM_VOLTAGE
228.100000

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish