I read here, that it was possible to integrate these into FHEM via CUL - and I asked myself if someone else did it already for openHAB. They’re working in the range 433,05 - 434,75 Mhz
If nobody did this before, I’ll try my luck - but maybe I need support from people having experience with CUL.
Hello again,
I got them running on my CUL, I receive the data - and I know how to interpret the received values.
But what I’m missing now, is the the proper way to get the data from the CUL into openHAB.
Is there an existing way to get “any” data received from my CUL stick into openHAB without developing a transport binding? Means: Is there an “open” CUL transport protocol I don’t know an just have to use it?
I don’t speak JAVA, otherwise I’d develop some io-binding for that…
Discovery should work and I already have part of the protocol running. Power and consumption are reported to openHAB. I have no more time now, will work on this the next days.
I have just updated the jar file with the current state. Please try out if you can discover your power monitors and report back if they get sensible values.
Great work man!
Autodiscovery works - I had to trigger it several times until it received most of my sensors (but that’s just fine tuning of the sensors radio settings too)
The so far decoded values make sense:
==> /var/log/openhab2/openhab.log <==
2019-12-10 19:09:39.281 [WARN ] [eneric.internal.generic.ChannelState] - Command 'FFB36B' not supported by type 'ColorValue': FFB36B is not a valid RGB syntax
2019-12-10 19:09:39.365 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port /dev/ttyUSB1: r4F1BE3005032067C5CBA6225
2019-12-10 19:09:39.367 [DEBUG] [ternal.revolt.RevoltReadingConverter] - hex=E3 int=227
2019-12-10 19:09:39.369 [DEBUG] [ternal.revolt.RevoltReadingConverter] - hex=0050 int=80
2019-12-10 19:09:39.372 [DEBUG] [ternal.revolt.RevoltReadingConverter] - hex=32 int=50
2019-12-10 19:09:39.374 [DEBUG] [ternal.revolt.RevoltReadingConverter] - hex=067C int=1660
2019-12-10 19:09:39.376 [DEBUG] [ternal.revolt.RevoltReadingConverter] - hex=5C int=92
2019-12-10 19:09:39.378 [DEBUG] [ternal.revolt.RevoltReadingConverter] - hex=BA62 int=47714
2019-12-10 19:09:39.381 [DEBUG] [.internal.revolt.RevoltSensorHandler] - updating states for thing 4F1B: currWatt=166.0 (166.0), consumption=477.14 (477.14)
I have once again updated the jar. I have added the missing channels.Missing is the update of the readme, I will do this once you are happy with the naming, as otherwise I will have to correct it twice.
So please install, check values, naming and description of things and channels and report back.
Readings are now there (had to recreate/rediscover the things), naming i good too. Your calculation seems to be okay too. Just the items aren’t receiving the proper values jet (I’m checking my setup,maybe I did something wrong - just used the auto creation assistant from paperUI jet)
2019-12-11 16:59:01.508 [TRACE] [connection.AbstractJeeLinkConnection] - Read line from port /dev/ttyUSB1: r4B5EE5002B3202F64D14DA53
2019-12-11 16:59:01.513 [DEBUG] [.internal.revolt.RevoltSensorHandler] - updating states for thing 4B5E: power=75.8, powerFactor=0.77, consumption=53.38, current=0.43, voltage=229, frequency=50
==> /var/log/openhab2/events.log <==
2019-12-11 16:59:01.547 [vent.ItemStateChangedEvent] - Revolt_Infra_SZ_MomentanerVerbrauch changed from 78.7 W to 75.8 W
2019-12-11 16:59:01.567 [vent.ItemStateChangedEvent] - Revolt_Infra_SZ_Leistungsfaktor changed from 0.76 to 0.77
2019-12-11 16:59:01.576 [vent.ItemStateChangedEvent] - Revolt_Infra_SZ_StromstRke changed from 0.45 A to 0.43 A
2019-12-11 16:59:01.584 [vent.ItemStateChangedEvent] - Revolt_Infra_SZ_Spannung changed from 0.45 V to 0.43 V
2019-12-11 16:59:01.590 [vent.ItemStateChangedEvent] - Revolt_Infra_SZ_Stromnetzfrequenz changed from NULL to 0.43 Hz
Okay, I’m gonna update the jar right away now.
They send all values in a regular interval. Usually almost ever 2 to 3 sec.
I guess just my CUL isn’t the best in receiving the stuff …
So i leave the sensor timeout at 60s. Do you know which devices work with this protocol? Is it only the NC-5462 and the NC-5262 or do all the Revolt Power Monitors work with the same protocol?
Edit: i have now once again updated the jar. I have changed the internal logic a bit simplyfing the addition of new sensor types. I also updated some of the naming and descriptions.
Can you please once again install the jar and check if everything is still working? I would then try to find some people on the jeelink thread that are also willing to test the new version. If everything works as expected, I will create pull request to get the changes into openhab.
I’m using the Revolt NC-5462 and the Profitec KD 310 T (same device it seems).
Maybe also the DIW FHT-9998 and in general all similar looking devices - but that’s just wild guessing.
The latest version of your modules seems to work still fine.