Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Support for Oregon Scientific UVN800 #868

Closed
automaten opened this issue Feb 17, 2014 · 5 comments
Closed

Support for Oregon Scientific UVN800 #868

automaten opened this issue Feb 17, 2014 · 5 comments

Comments

@automaten
Copy link

I would be glad if support for Oregon Scientific UVN800 (UV meter) was added to the RFXCOM binding.

Please see example below for exceptions thrown by the RFXCOM binding when receiving packet from UVN800 :

17:07:53.572 ERROR o.o.b.r.internal.RFXComBinding[:279] - Error occured during packet receiving, data: 095702F34500003E4F79
org.openhab.binding.rfxcom.internal.RFXComException: Message UV not implemented
at org.openhab.binding.rfxcom.internal.messages.RFXComMessageFactory.getMessageInterface(RFXComMessageFactory.java:120)
at org.openhab.binding.rfxcom.internal.RFXComBinding$MessageLister.packetReceived(RFXComBinding.java:231)
at org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector$SerialReader.run(RFXComSerialConnector.java:202)
Caused by: java.lang.ClassNotFoundException: org.openhab.binding.rfxcom.internal.messages.RFXComUVMessage
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.openhab.binding.rfxcom.internal.messages.RFXComMessageFactory.getMessageInterface(RFXComMessageFactory.java:115)
... 2 common frames omitted

The corresponding message in RFXmngr (not the same frame though):

0957020B840000CA0070
Packettype = UV
Subtype = UV2 - UVN800
Sequence nbr = 11
ID = 33792
UV Level = 0
Description = Low
Signal level = 7

Battery = Low

If I can be of any help for testing, please let me know.

@paulianttila
Copy link
Contributor

Are you able to do this by you own? You could easily implement it by taking e.g. temperature humidity message as a base, renamed to RFXComUVMessage.java and make few small changes there. UV selector need to be added to RFXComValueSelector.java as well.

https://github.com/openhab/openhab/blob/master/bundles/binding/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComTemperatureHumidityMessage.java

@automaten
Copy link
Author

I don´t think I am up to the task, not having programmed Java in several years, and when looking at the code in the link I barely know where to begin.
Right now I am trying to become comfortable using Xtext for creating rules, that is my level right now.

I wish I could contribute to the code, but I am not there yet.

@teichsta
Copy link
Member

teichsta commented Jun 2, 2014

Any news on this issue?

@automaten
Copy link
Author

No news as far as I know.

@Speederc
Copy link
Contributor

Added by #3137. Can be closed.

@hmerk hmerk closed this as completed Apr 10, 2016
hubermi pushed a commit to hubermi/openhab that referenced this issue Jan 10, 2017
Enable NWI during node inclusion when the controller supports it.
Signed-off-by: Jorg de Jong <jorg@dejong.info> (github: jongj)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants