maxwellhadley / node-red-contrib-rfxcom

node-RED nodes to access an RFXtrx433 transceiver
BSD 2-Clause "Simplified" License
22 stars 13 forks source link

rfx-meter node doesn't appear to support actual RFXMeter devices? #51

Closed martynwendon closed 6 years ago

martynwendon commented 6 years ago

I recently started using node-red-contrib-rfxcom alongside my older RFXLan (xPL) devices and alongside Domoticz.

I've slowly been mirroring the data into node-red from all those sources which makes for a very robust and reliable system.

I noticed that the rfx-meter node doesn't appear to support actual RFXMeter devices (0x71), for example the old RFXMeter / RFXPulse combination, or the WPC3 device from foogadgets.

Would that be a quick fix to add that to the rfx-meter node?

maxwellhadley commented 6 years ago

That should be possible, although the packet subtypes seem to be used differently from just about everything else, so it would need special-case handling in the meter node. The SDK documentation is a bit sketchy, too - and there is nothing at all on the RFXCOM website about the unit. Do you have a copy of the RFX-meter user manual you could send somehow?

Am I correct in my understanding that you have to press buttons in some combination on the RFX meter to set the reporting interval, calibration factors, address and so forth? It appears to be receive only on the RFXtrx433E

martynwendon commented 6 years ago

The RFXMeter / RFXPulse are really old now, I couldn't actually remember how they work, mine have been running for > 10 years!

I managed to dig out the manual and refresh my memory - there is a push-button interface to configure it but they are also bi-directional so could be configured using software. I do recall carrying out that operation when I first got the device, I believe I used an old application called xPLRFX with the old USB RFX 433 transceiver (another very old device!)

The foogadgets WPC3 device simply mimics an RFXMeter device in terms of transmission, but that's one-way only and the configuration is hardcoded in the device (I've attached the manual for that too).

In terms of what the rfx-meter node would need to do, I guess taking a look at the Domoticz source would give a reasonable clue, since both the original RFXMeter and the WPC3 variants work well there. From memory the Vera LUA based plugin also supported them, although I've not used that for some time, but it's a little easier to understand than the domoticz source.

https://github.com/domoticz/domoticz/search?q=rfxmeter&unscoped_q=rfxmeter

http://code.mios.com/trac/mios_rfxtrx/browser/trunk

ManualWPC3.pdf

RFXMeter.pdf RFXPulse module.pdf

maxwellhadley commented 6 years ago

I have made a simple fix for this - PR #54. It handles only the normal 'count' type rfxmeter packets, returning a "counter" property with value = the count received from the rfxmeter, and units="Count".

Published as 2.6.0