The HM-ES-PMSw1-PL is the more elaborate version of theĀ HM-LC-Sw1-Pl-DN-R1 Power Switch. It rater is a Power Meter which means there is access to all kinds of “power information” (literally) that can be exploited.
The Definition of the Device is rather simple:
# Define MyPowerMeter Main Device define [MyPowerMeter] CUL_HM [HMID] attr [MyPowerMeter] IODev [HMIO] attr [MyPowerMeter] IOgrp [VCCU]:[HMIO] attr [MyPowerMeter] actCycle 000:10 attr [MyPowerMeter] actStatus alive attr [MyPowerMeter] autoReadReg 4_reqStatus attr [MyPowerMeter] expert 2_raw attr [MyPowerMeter] firmware 1.6 attr [MyPowerMeter] model HM-ES-PMSw1-Pl attr [MyPowerMeter] room [MyRoom] attr [MyPowerMeter] serialNr [MySerialNo] attr [MyPowerMeter] subType powerMeter attr [MyPowerMeter] webCmd getConfig:clear msgEvents
I usually define a text log for the Power Switch
define FileLog_[MyPowerMeter] FileLog ./log/[MyPowerMeter]-%Y.logĀ [MyPowerMeter] attr FileLog_[MyPowerMeter] logtype text
The really interesting part of the PowerMeter’s definition are its six Channels:
- Channel 01 (_Sw) – the actual “Power Switch”,
- Channel 02 (_Pwr) – the Power Information Channel,
- Channel 03 (_SenPwr) – a Sensor Channel working off the actual Power Consumption,
- Channel 04 (_SenI) – a Sensor Channel working off the actual Current,
- Channel 05 (_SenU) – a Sensor Channel working off the actual Voltage, and
- Channel 06 (_SenF) – a Sensor Channel working off the actual Frequency
The definitions are more or less straight forward:
define [MyPowerMeter]_Sw CUL_HM [HMID]01 attr [MyPowerMeter]_Sw model HM-ES-PMSw1-Pl attr [MyPowerMeter]_Sw room Wohnzimmer attr [MyPowerMeter]_Sw peerIDs 00000000, define [MyPowerMeter]_Pwr CUL_HM [HMID]02 attr [MyPowerMeter]_Pwr model HM-ES-PMSw1-Pl define [MyPowerMeter]_SenPwr CUL_HM [HMID]03 attr [MyPowerMeter]_SenPwr model HM-ES-PMSw1-Pl attr [MyPowerMeter]_SenPwr peerIDs 00000000, define [MyPowerMeter]_SenI CUL_HM [HMID]04 attr [MyPowerMeter]_SenI model HM-ES-PMSw1-Pl attr [MyPowerMeter]_SenI peerIDs 00000000, define [MyPowerMeter]_SenU CUL_HM [HMID]05 attr [MyPowerMeter]_SenU model HM-ES-PMSw1-Pl attr [MyPowerMeter]_SenU peerIDs 00000000, define [MyPowerMeter]_SenF CUL_HM [HMID]06 attr [MyPowerMeter]_SenF model HM-ES-PMSw1-Pl attr [MyPowerMeter]_SenF peerIDs 00000000,
Now, most of us will use Channel 01 to control the power switch and Channel 02 to read the Power Information, e.g. for creating a graph of the power consumption.