LightwaveRF - New LightwaveRF Binding

just uploaded the new version - same link

Nice - Will try again now

Seems to be working perfectly now Dave!


That’s a remarkable level of technical support / customer service - Much appreciated!
Steve

1 Like

Hi Dave,

Sorry, not sure if this is due to the latest jar, the revised hardware or a.n.other, but I’m seeing a lot of errors in the logs now (this is after a stop / cache clear / start of openhabian):-

2022-10-06 14:33:19.680 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8424, for Device: 5e4473744690cd6d270525a1-7-3157351815+2, retrying again. Retry count 2

2022-10-06 14:33:21.783 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8424, for Device: 5e4473744690cd6d270525a1-7-3157351815+2, retrying again. Retry count 3

2022-10-06 14:33:23.886 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8424, for Device: 5e4473744690cd6d270525a1-7-3157351815+2, retrying again. Retry count 4

2022-10-06 14:33:25.989 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8424, for Device: 5e4473744690cd6d270525a1-7-3157351815+2, retrying again. Retry count 5

2022-10-06 14:33:28.093 [ERROR] [ernal.LightwaverfSmartCommandManager] - Unable to send transaction 8424, command value was null : null for Device: null, after 5 retry attempts

2022-10-06 14:33:30.352 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8425 as we are stopping

2022-10-06 14:33:32.454 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8426 as we are stopping

2022-10-06 14:33:34.556 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8427 as we are stopping

2022-10-06 14:33:36.658 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8428 as we are stopping

2022-10-06 14:33:38.760 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8429 as we are stopping

2022-10-06 14:33:40.862 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8430 as we are stopping

2022-10-06 14:33:42.965 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8431 as we are stopping

2022-10-06 14:33:45.067 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8432 as we are stopping

2022-10-06 14:33:47.169 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8433 as we are stopping

2022-10-06 14:33:49.271 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8434 as we are stopping

2022-10-06 14:33:51.373 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8435 as we are stopping

2022-10-06 14:33:53.475 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8436 as we are stopping

2022-10-06 14:33:55.577 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8437 as we are stopping

2022-10-06 14:33:57.679 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8438 as we are stopping

2022-10-06 14:33:59.781 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8439 as we are stopping

2022-10-06 14:34:01.883 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8440 as we are stopping

2022-10-06 14:34:03.986 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8441 as we are stopping

2022-10-06 14:34:06.440 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8442 as we are stopping

2022-10-06 14:34:08.543 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8443 as we are stopping

2022-10-06 14:34:10.647 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8444 as we are stopping

2022-10-06 14:34:12.966 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8445 as we are stopping

2022-10-06 14:34:15.068 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8446 as we are stopping

2022-10-06 14:34:17.170 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8447 as we are stopping

2022-10-06 14:34:19.272 [ERROR] [ernal.LightwaverfSmartCommandManager] - Not retrying transactionId 8448 as we are stopping

2022-10-06 14:34:21.701 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8449, for Device: 5e4473744690cd6d270525a1-9-3157351815+2, retrying again. Retry count 2

2022-10-06 14:34:23.804 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8449, for Device: 5e4473744690cd6d270525a1-9-3157351815+2, retrying again. Retry count 3

2022-10-06 14:34:25.907 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8449, for Device: 5e4473744690cd6d270525a1-9-3157351815+2, retrying again. Retry count 4

2022-10-06 14:34:28.010 [ERROR] [ernal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 8449, for Device: 5e4473744690cd6d270525a1-9-3157351815+2, retrying again. Retry count 5

2022-10-06 14:34:30.114 [ERROR] [ernal.LightwaverfSmartCommandManager] - Unable to send transaction 8449, command value was null : null for Device: null, after 5 retry attempts

Thought I’d let you know

Thanks
Steve

How is this now Steve…
Sorry been away for a bit as busy with work.
How is everyone? All good?

I’m still here and its still working for me. Would you like the new version tested anyway?

I dont even know what the new version is now it’s been so long :joy:

Mines still plugging away and not restarted openhab in about a year now.

Hi Dave

All fine thanks. Hope you’re well too. . I’ve filtered out the errors from the logs as didn’t seem to be causing any issues no no change there

Out of interest, are you planning on producing a jar for Openhab 4? A quick glance at the related forum suggests no V3 jars will work out of the box on V4

Thanks
Steve

Hi Dave - Any thoughts on a V4 binding?
Thanks
Steve

Not as of yet. I’ve not even looked at v4, 3 has been working flawlessly for me for like forever. I keep meaning to do some bug fixing and stuff but I’ve still just not had time.

Oh dear. I ran the upgrade option in the admin tool and it seems I’m now the proud owner of Openhab 4.0.1 without having asked for it. Somewhat annoying to put it mildly as usually it just updates within your version and asks you before migrating. So beware people!
Needless to say the LWRF binding is now no longer happy.
@ delid4ve If and when you get around to looking at the new version it seems I’m now ideally placed to do some testing for you…

I’ll get a new version compiled for you as soon as I can.

I’ve done something silly myself and upgraded to 4.0.1 as well.
Admittedly I planned doing it to get support for a new Shelly device but I thought I had seen mention of a new version for LWRF and clearly mixed that up with something else.

Happy to also test the new version for you too.
If there’s an easy guide for how to set up and compile it from your source myself, happy to give that a go too.

Thanks in advance!

Hi Dave - I’d be happy to help too. I feel it’s about time to move to V4 (although like you V3 seems stable) but LightWave is an important part of my system too - I can’t move without it!
I’ve now got a ‘test’ instance of Openhabian V4 running in parallel to my ‘Prod’ V3 so would be happy to help out where ever I can. (equally happy to try to recompile from source if that is of any use)
Cheers
Steve

@SteveBuckell @Fixer I can’t say it’s done properly but I have managed to get a jar for 4.1.0 succesfully built, it’s working for me on 4.0.2 (mainly because I don’t have much of a clue what I am doing, so picked the wrong base).

Would definitely suggest waiting for Dave to get a proper one if you can, but if you are stuck, then this might tide you over:

https://github.com/paulhugill/openhab-3.x-lightwaverf/raw/master/target/org.openhab.binding.lightwaverf-4.1.0-SNAPSHOT.jar

Thanks Paul. Very helpful, thanks. Will be able to give it a go in a week or so hopefully - will let you know

Hi Paul,

So I’ve finally managed to give this a go. Did the following:-

  1. I added the jar into /usr/share/openhab/addons
  2. I stopped the service:- sudo systemctl stop openhab.service
  3. I cleared the cache:- sudo openhab-cli clean-cache
  4. I started the service:- sudo systemctl start openhab.service

Very early in the logs I see:-

2023-09-16 20:00:09.673 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.lightwaverf-4.1.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.lightwaverf [28]
  Unresolved requirement: Import-Package: org.openhab.core.config.core
	at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.18.0.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) ~[?:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) ~[?:?]

Furthermore, if I try to add a thing in the UI (http://192.168.0.62:8080/settings/things/add) the UI states “No bindings. To add things to your system, you first need to install binding add-ons”

So I’m a bit stuck.
I’m a bit rusty on the addons folder / jars etc - Am I missing something? I’m on Openhabian 4.0.3

Thanks
Steve

I’d guess I probably did something wrong, I’d have done the same steps, though maybe not the clean-cache when I put it in, I usually forget it.
Never built a binding before so very likely I messed something up, I was only doing it because I’d got myself stuck due to upgrading and not having checked if there was a working version and just wanted to take any pressure off Dave but I’ll definitely switch to his one when he manages to get time.

I’m still on 4.0.2 but it seems to be working, I do have one other jar in for the WeatherFlow Smart Weather, so maybe having a properly built jar is why is getting it working for me.

Maybe restart OH again?
There is another similar thread here where that seemed to fix it: Error while starting bundle file due to missing dependency after upgrading to OH 4.0.3

Thanks for your quick response! Restarted a few more times. No more complaints in the logs but binding still doesn’t show in the UI (I also added the Hue binding to check it wasn’t a generic issue - no problem there - Hue Binding shows).
The Karaf console shows the Lightwave binding as ‘active’ and there are no errors in the logs so I’m at a bit of a loss as to why it’s not showing in the UI…
Only thing I thought of was because it’s a 4.10 binding and I’m running 4.03 and 03 < 10, but you’re seeing no issues on 4.02 so that doesn’t seem likely to be the issue…