Lutron OH2 binding

Both versions say they work with home kit, I ended up having to buy the pro hub after making that mistake

The work on the additions to the Lutron binding for RA2 which I mentioned here a few weeks ago has been slowly progressing. I have handlers for seeTouch tabletop keypads, VCRX, and Pico keypads working well, and with auto-discovery support. These allow you to monitor for key presses, send remote key presses, monitor LED states, and drive LED states. They also automatically create the proper channels for each keypad model based on a “model” parameter. The VCRX handler also supports the CCI inputs, although that still needs some testing

On the output side, I’ve added support for pulsed and maintained CCO modules (in VCRX and stand-alone), and added auto-discovery support for several additional dimmer and switch models.

Finally, I have handlers for the Lutron RA2 timeclock and “Green mode” working. However, those are still experimental and require a bit of tweaking, so I’ll probably pull that code out into a separate branch before I try to generate an initial pull request.

If anyone is interested in helping to test these additions and/or providing feedback please let me know.

  • Bob

Hi Bob, I’m glad to see you are working on this. I’m experimenting with OH mostly to support some more advanced conditional logic that isn’t available with RA2. I have also noticed some of the limitations and am really glad to see your list. I’d be happy to do some testing. I think I have all the models except the relay modules. I’d love to test VCRX and driving keypad LED’s.

-Erik

Did anyone ever get this to work with the Homeworks QS? I have the telnet IP/Login/Password, but the prompt is QNET instead of the GNET that the normal binding seems to look for. I don’t have the SmartBridge Pro or anything, but the Homeworks QS itself allows telnet.

1 Like

unfortunately I’m in the same position, and don’t have a solution (other than using openhab to run expect scripts that telnet in and turn lights on/off).

I made a build here to add support for HW QS, but I guess I never got around to doing a pull request. I don’t have HW QS, and I think I was waiting on someone to try it out to make sure it worked before doing a pull request.

I can try it. I just need to figure out how to override the one in the docker container with the jar.

well that is awesome, thank you. Writing/reading to individual lights works perfectly. I can’t seem to control/sense keypads, though (and that means I can’t control my blinds, as seem to be no appropriate things/channels other than the keypads).

To be more specific, if I create a Thing as follows:

Thing lutron:keypad:study (lutron:ipbridge:qs) [ integrationId=13 ]

then no Thing is actually created (nothing in Paper UI) and there are no errors in the logs.

Alright. So I booted it up. It goes online, but doesn’t seem to download the XML properly. It doesn’t seem to scan the Access Point and pickup any “things”… thats the log below. It seems it doesn’t like something about the XML.

10:10:09.246 [ERROR] [iscovery.LutronDeviceDiscoveryService] - Error scanning for devices
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more
10:11:28.021 [ERROR] [iscovery.LutronDeviceDiscoveryService] - Error scanning for devices
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more
10:11:28.022 [ERROR] [.internal.discovery.DiscoveryResource] - Error occurred while scanning for binding ‘lutron’: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more
10:13:32.004 [ERROR] [iscovery.LutronDeviceDiscoveryService] - Error scanning for devices
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more
10:13:32.005 [ERROR] [.internal.discovery.DiscoveryResource] - Error occurred while scanning for binding ‘lutron’: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more
10:14:07.398 [ERROR] [iscovery.LutronDeviceDiscoveryService] - Error scanning for devices
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more
10:14:07.399 [ERROR] [.internal.discovery.DiscoveryResource] - Error occurred while scanning for binding ‘lutron’: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
com.thoughtworks.xstream.io.StreamException: : ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:73) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxReader.(StaxReader.java:45) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createStaxReader(StaxDriver.java:173) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.io.xml.StaxDriver.createReader(StaxDriver.java:110) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1115) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1062) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.eclipse.smarthome.config.xml.util.XmlDocumentReader.readFromXML(XmlDocumentReader.java:87) [108:org.eclipse.smarthome.config.xml:0.10.0.b1]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.readDeviceDatabase(LutronDeviceDiscoveryService.java:84) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService.access$0(LutronDeviceDiscoveryService.java:80) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at org.openhab.binding.lutron.internal.discovery.LutronDeviceDiscoveryService$1.run(LutronDeviceDiscoveryService.java:67) [201:org.openhab.binding.lutron:2.1.0.201702112004]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:604) ~[?:?]
at com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:58) ~[?:?]
… 20 more

The discovery service is trying to read http://[bridge-ip]/DbXmlInfo.xml. What do you get if you go to that URL with your browser?

Allan, is there anything I can provide in terms of e.g. telnet info that would help get my QS keypads working with your JAR?

many thanks,

Dan

A bunch of stuff… it looks like

<?xml version="1.0" encoding="UTF-8" ?>
  <!--                                                                      -->
  <!-- This file and the information contained herein are confidential      -->
  <!-- and proprietary to Lutron Electronics Co., Inc.  Unauthorized        -->
  <!-- possession or use of this file or the information contained herein   -->
  <!-- is prohibited.  No reproduction may be made of this file without     -->
  <!-- the express written permission of Lutron Electronics Co., Inc.       --><Project><ProjectName /><Copyright>Copyright 2010 Lutron Electronics Co., Inc. All rights reserved</Copyright>

To be more specific, if I create a Thing as follows:

Thing lutron:keypad:study (lutron:ipbridge:qs) [ integrationId=13 ]

I don’t think you’re supposed to have that leading Thing, just

lutron:keypad:study (lutron:ipbridge:qs) [ integrationId=13 ]

Thoughts on the XML? I can send you the full file if you want it.

Yes, that would help. I suspect it’s getting tripped up on a byte-order mark.

The “Thing” is optional - I’ve deleted it and get the same result. Keypad Thing seems non-functional.

Hello - I’m brand new to OH2. So please forgive my newness.

I’m in the same boat as others, my switches are working fine but I’m unable to get my keypads to function. I would like to set rules around key pad presses although it doesn’t seem to be working correctly. I’m guessing this is a function of my lack of understanding OH2.

Can someone please give me an example of how I would create a rule that would respond to a keypad press?

Thank you for the help!

Hi Allan - just wondering if you’d updated your fantastic QS binding, or ever got round to do a pull request? Unfortunately the old version you posted in January seems to have stopped working with the latest snapshot - I get a error:

[ERROR] [org.openhab.binding.lutron ] - [org.openhab.binding.lutron.internal.discovery.RadioRA2MainR| 20|epeaterDiscoveryService(267)] The activate method has thrown an exception

thank you!

Dan

No, sorry, haven’t had much time for OH. I think you were still having problems with keypads right? I guess if it was still useful to you, I could do a pull request, though maybe I should look at this error you’re getting now. Is there more to the error than what you posted above?

Thank you, Allan.

Yes, keypads don’t work, but that’s not a huge issue - it’s still very useful and much appreciated.

The errors go on and on - I’ve copied the log here

thanks,

Dan