klassm / andFHEM

Manage your FHEM home automation server via Android.
andFHEM.klass.li
60 stars 21 forks source link

New device HM-ES-TX-WM #896

Closed mr-p666 closed 9 years ago

mr-p666 commented 9 years ago

Hej Matthias,

a new device again:

The HM-ES-TX-WM is a powersensor and can get used by three types of sensors (but always just one at once): gas, IR, LED in Register mtrType, While LED and IR do the same (measuring power in two different ways) the gas module works different. The IR & LED uses the registers: energy & power while the gas uses gasCnt & gasPower.

<FHZINFO>
    <CUL_HM_LIST>
        <CUL_HM name="sensorPMeter" state="Nack" sets="clear:readings,trigger,register,rssi,msgEvents,all getConfig getRegRaw peerBulk raw regBulk regSet reset sign:on,off unpair" attrs="verbose:0,1,2,3,4,5 room group comment alias eventMap userReadings do_not_notify:1,0 showtime:1,0 rawToReadable unit expert:0_off,1_on,2_full param ignore:1,0 dummy:1,0 IODev IOList IOgrp actCycle hmProtocolEvents:0_off,1_dump,2_dumpFull,3_dumpTrigger rssiLog:1,0 actAutoTry:0_off,1_on serialNr firmware .stc .devInfo actStatus autoReadReg:0_off,1_restart,2_pon-restart,3_onChange,4_reqStatus,5_readMissing,8_stateOnly burstAccess:0_off,1_auto msgRepeat hmProtocolEvents:0_off,1_dump,2_dumpFull,3_dumpTrigger aesCommReq:1,0 repPeers peerIDs tempListTmpl levelRange levelMap event-on-change-reading event-on-update-reading event-aggregator event-min-interval stateFormat model:ASH550,ASH550I,CCU-FHEM,CMM,DORMA_BRC-H,DORMA_RC-H,DORMA_atent,HM-CC-RT-DN,HM-CC-RT-DN-BoM,HM-CC-SCD,HM-CC-TC,HM-CC-VD,HM-Dis-TD-T,HM-Dis-WM55,HM-ES-PMSw1-Pl,HM-ES-PMSw1-Pl-DN-R1,HM-ES-PMSw1-Pl-DN-R3,HM-ES-PMSw1-Pl-DN-R4,HM-ES-PMSw1-Pl-DN-R5,HM-ES-TX-WM,HM-LC-BL1-FM,HM-LC-BL1-PB-FM,HM-LC-BL1-SM,HM-LC-Bl1-FM-2,HM-LC-Bl1-SM-2,H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,ROTO_ZEL-STG-RM-FSA,ROTO_ZEL-STG-RM-FST-UP4,ROTO_ZEL-STG-RM-FWT,ROTO_ZEL-STG-RM-FZS,ROTO_ZEL-STG-RM-FZS-2,ROTO_ZEL-STG-RM-HS-4,ROTO_ZEL-STG-RM-WT-2,Roto_ZEL-STG-RM-FFK,Roto_ZEL-STG-RM-FSS-UP3,S550IA,Schueco_263-130,Schueco_263-131,Schueco_263-132,Schueco_263-133,Schueco_263-134,Schueco_263-135,Schueco_263-144,Schueco_263-145,Schueco_263-146,Schueco_263-147,Schueco_263-155,Schueco_263-158,Schueco_263-160,Schueco_263-162,Schueco_263-167,Schueco_263-xxx,WDF-solar,WS888 subType:AlarmControl,KFM100,THSensor,blindActuator,blindActuatorSol,dimmer,keyMatic,motionAndBtn,motionDetector,outputUnit,powerMeter,powerSensor,pushButton,remote,repeater,sensRain,sensor,singleButton,smokeDetector,swi,switch,thermostat,threeStateSensor,tipTronic,virtual,winMatic devStateIcon devStateStyle fp_floorplan icon sortby webCmd widgetOverride userattr">
            <INT key="CFGFN" value="/etc/fhem/sensors.cfg"/>
            <INT key="DEF" value="353341"/>
            <INT key="LASTInputDev" value="myCOC"/>
            <INT key="MSGCNT" value="895"/>
            <INT key="NAME" value="sensorPMeter"/>
            <INT key="NR" value="512"/>
            <INT key="STATE" value="Nack"/>
            <INT key="TYPE" value="CUL_HM"/>
            <INT key="lastMsg" value="No:61 - t:5E s:353341 d:000000 04692A003A98"/>
            <INT key="myCOC_MSGCNT" value="447"/>
            <INT key="myCOC_RAWMSG" value="A0F61865E35334100000004692A003A98::-75:myCOC"/>
            <INT key="myCOC_RSSI" value="-75"/>
            <INT key="myCOC_TIME" value="2015-03-21 14:06:07"/>
            <INT key="myHM_MSGCNT" value="448"/>
            <INT key="myHM_RAWMSG" value="E353341,0000,3B239F35,FF,FFC1,61865E35334100000004692A003A98"/>
            <INT key="myHM_RSSI" value="-63"/>
            <INT key="myHM_TIME" value="2015-03-21 14:06:07"/>
            <INT key="protLastRcv" value="2015-03-21 14:06:07"/>
            <INT key="protSnd" value="6 last_at:2015-03-20 19:45:56"/>
            <INT key="protState" value="CMDs_done"/>
            <INT key="rssi_at_myCOC" value="avg:-73.79 min:-81.5 max:-70 lst:-75 cnt:447 "/>
            <INT key="rssi_at_myHM" value="avg:-60.22 min:-72 max:-57 lst:-63 cnt:448 "/>
            <INT key="IODev" value="myHM"/>
            <ATTR key="IODev" value="myHM"/>
            <ATTR key="IOgrp" value="myCCU:myHM"/>
            <ATTR key="actCycle" value="000:10"/>
            <ATTR key="actStatus" value="alive"/>
            <ATTR key="alias" value="Stromzaehler"/>
            <ATTR key="autoReadReg" value="4_reqStatus"/>
            <ATTR key="expert" value="1_on"/>
            <ATTR key="firmware" value="1.0"/>
            <ATTR key="model" value="HM-ES-TX-WM"/>
            <ATTR key="room" value="service"/>
            <ATTR key="serialNr" value="MEQ0025874"/>
            <ATTR key="subType" value="powerSensor"/>
            <STATE key=".RegL_00:" value="  02:01 F6:A8 0A:12 0B:04 0C:08 84:6A 14:06 00:00" measured="2015-03-20 19:45:55"/>
            <STATE key=".RegL_01:" value="  08:00 30:06 95:02 96:00 97:4B 98:00 99:0A 9A:27  9B:10 9C:E5 00:00" measured="2015-03-20 19:45:56"/>
            <STATE key=".protLastRcv" value="2015-03-21 14:06:07" measured="2015-03-21 14:06:07"/>
            <STATE key="Activity" value="alive" measured="2015-03-20 19:43:52"/>
            <STATE key="CommandAccepted" value="yes" measured="2015-03-20 19:45:54"/>
            <STATE key="D-firmware" value="1.0" measured="2015-03-20 19:43:52"/>
            <STATE key="D-serialNr" value="MEQ0025874" measured="2015-03-20 19:43:52"/>
            <STATE key="PairedTo" value="0x120408" measured="2015-03-20 19:45:55"/>
            <STATE key="R-mtrConstGas" value="0.01 m3/I" measured="2015-03-20 19:45:56"/>
            <STATE key="R-mtrConstIr" value="75 U/kWh" measured="2015-03-20 19:45:56"/>
            <STATE key="R-mtrConstLed" value="10000 i/kWh" measured="2015-03-20 19:45:56"/>
            <STATE key="R-mtrSensIr" value="229 %" measured="2015-03-20 19:45:56"/>
            <STATE key="R-mtrType" value="IR" measured="2015-03-20 19:45:56"/>
            <STATE key="R-pairCentral" value="0x120408" measured="2015-03-20 19:45:55"/>
            <STATE key="R-transmDevTryMax" value="6" measured="2015-03-20 19:45:55"/>
            <STATE key="R-transmitTryMax" value="6" measured="2015-03-20 19:45:56"/>
            <STATE key="boot" value="off" measured="2015-03-21 14:06:07"/>
            <STATE key="current" value="0" measured="2015-03-21 14:06:07"/>
            <STATE key="eState" value="E: 28906.6 P: 150 I: 0 U: 0 f: 50" measured="2015-03-21 14:06:07"/>
            <STATE key="energy" value="28906.6" measured="2015-03-21 14:06:07"/>
            <STATE key="frequency" value="50" measured="2015-03-21 14:06:07"/>
            <STATE key="power" value="150" measured="2015-03-21 14:06:07"/>
            <STATE key="statEnergy" value="Hour: 13.3 Day: 2573.3 Month: 3840.0 Year: 3840.0 (since:  )" measured="2015-03-21 14:06:07"/>
            <STATE key="statEnergyLast" value="Hour: 200.0 Day: 1266.7 Month: - Year: -" measured="2015-03-21 13:59:55"/>
            <STATE key="statPowerDay" value="Min: 58 Avg: 195 Max: 3290" measured="2015-03-21 14:06:07"/>
            <STATE key="statPowerDayLast" value="Min: 0 Avg: 335 Max: 1921" measured="2015-03-20 23:59:55"/>
            <STATE key="statPowerHour" value="Min: 149 Avg: 149 Max: 150" measured="2015-03-21 14:06:07"/>
            <STATE key="statPowerHourLast" value="Min: 134 Avg: 216 Max: 754" measured="2015-03-21 13:59:55"/>
            <STATE key="statPowerMonth" value="Min: 0 Avg: 305 Max: 3290 (since:  )" measured="2015-03-21 14:06:07"/>
            <STATE key="statPowerYear" value="Min: 0 Avg: 305 Max: 3290 (since:  )" measured="2015-03-21 14:06:07"/>
            <STATE key="state" value="Nack" measured="2015-03-20 19:36:06"/>
            <STATE key="voltage" value="0" measured="2015-03-21 14:06:07"/>
        </CUL_HM>
    </CUL_HM_LIST>
</FHZINFO>

Units from the powersensors are W in Power and Wh in Energy. I assume the units from the gas sensor are l(iters) for gasCnt and also W for gasPower.

Logfile from powermeter looks like this:

2015-03-21_14:08:52 sensorPMeter boot: off
2015-03-21_14:08:52 sensorPMeter current: 0
2015-03-21_14:08:52 sensorPMeter eState: E: 28920 P: 150 I: 0 U: 0 f: 50
2015-03-21_14:08:52 sensorPMeter energy: 28920
2015-03-21_14:08:52 sensorPMeter frequency: 50
2015-03-21_14:08:52 sensorPMeter power: 150
2015-03-21_14:08:52 sensorPMeter voltage: 0
2015-03-21_14:11:26 sensorPMeter boot: off
2015-03-21_14:11:26 sensorPMeter current: 0
2015-03-21_14:11:26 sensorPMeter eState: E: 28933.3 P: 247 I: 0 U: 0 f: 50
2015-03-21_14:11:26 sensorPMeter energy: 28933.3
2015-03-21_14:11:26 sensorPMeter frequency: 50
2015-03-21_14:11:26 sensorPMeter power: 247
2015-03-21_14:11:26 sensorPMeter voltage: 0
2015-03-21_14:13:40 sensorPMeter boot: off
2015-03-21_14:13:40 sensorPMeter current: 0
2015-03-21_14:13:40 sensorPMeter eState: E: 28946.6 P: 266 I: 0 U: 0 f: 50
2015-03-21_14:13:40 sensorPMeter energy: 28946.6
2015-03-21_14:13:40 sensorPMeter frequency: 50
2015-03-21_14:13:40 sensorPMeter power: 266
2015-03-21_14:13:40 sensorPMeter voltage: 0

Would be great to see it in andFHEM soon! :-)

mr-p666 commented 9 years ago

Hej Matthias,

do you already know when you will find time for implementation?

Thx a lot! :-)

klassm commented 9 years ago

Hi @mr-p666

I have added some basic support for the powerSensor subtype. However, this effectively mirrors the functionality of a powerSensor device, missing attributes like gasCnt and gasPower.

Maybe you can figure out what attributes you are missing. There are some strange "R-" attributes I did not just want to add but ask first.

In every case, that basic support will be included in the next version. I'll leave the issue open for now.

Matthias