LightwaveRF Binding Updated

can anyone confirm the login server is down at present?
getting 404 Not Found

20 mins later its back up…

Have completely re written the binding today. Got couple bits to finish in a bit and will post up. Couple of hours I reckon

Let me know when you’re ready and I’ll test it out

@xela just uploaded new version to git. You will need to remove all discovered things/items etc before you load in as the structure has changed. also clear the inbox.

Ive still got to synchronize the requests (little freak out on the gui’s at the moment) but i believe everything should now work.

Will give it a go shortly

I have added a new topic for the binding so i can keep the link updated etc on the first post.


report any issues on git, theres a few I know about already.

Have logged a couple on there, will move over to the new topic

I may be being thick, but how do I create the lightwave account thing? Via text files or through paper UI?

Once you load the binding, you should be able to find it in under Configuration, Bindings. From there it should let you add the account

@Fixer @xela I’m just integrating text based config,
Maybe ready tonight, maybe 2mora

Once you have created the account thing use discovery for now.
As a helper to yourselves, when you have run it, make a note of:
The product type (1 way dimmer, 2 way socket) and the device Id (just the number between two hyphens not the full thing)
Ready for text based config.
Lightwave don’t make it easy :weary:

Got it working now. For some reason the binding was there but no things at all. I restarted OpenHAB and all came good.
Started having a play, posted a couple of observations on Git and will do more tomorow

@delid4ve Fantatsic work mate setup was very simple.

Only thing i can see is if i use the wall switch or lightwave app openhab isn’t updating? anyone else experiencing this?

Thanks

There’s a few niggles (that I have fixed in newer version), just putting finishing touches.
Tomorrow morning at some point I think

1 Like

New version up.
Need to clear cache before you load in and delete previously added things/inbox - shouldn’t have to this anymore after this version
Read me has been updated
Should fix dimmer.
Value formats added
Category’s added
Each device will now list under properties the channel names.
Account will list all devices available for configuration under properties
Support added for multiple accounts (not tested yet)
Various other minor fixes

**channel names not working correctly - will look in a bit

Won’t be back until late today but will give it a go tomorrow.
How do you clear the cache? I’ve always just rebooted but if there’s an easier way…

Reboot doesn’t clear it.
Stop openhab. Delete user data tmp and cache
Reboot

@delid4ve

Is this the cache and tmp folders in /var/lib/openhab2

Running Ubuntu

Cleared the user data and cache, Openhab won’t start at all now - just repeats this over and over in the log:

2020-02-09 17:32:00.420 [SEVERE] [org.apache.karaf.main.Main] - Could not launch framework
java.lang.RuntimeException: Error initializing storage.
at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:70)
at org.eclipse.osgi.launch.Equinox.(Equinox.java:31)
at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:24)
at org.apache.karaf.main.Main.launch(Main.java:256)
at org.apache.karaf.main.Main.main(Main.java:178)
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.(RandomAccessFile.java:243)
at org.eclipse.osgi.internal.location.Locker_JavaNio.lock(Locker_JavaNio.java:36)
at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:388)
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:701)
at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1776)
at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:1793)
at org.eclipse.osgi.storage.Storage.(Storage.java:132)
at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:68)
… 4 more

Hmm… you stopped, deleted tmp and cache yeah…
Then started.
What are you running on?
Something has a lock on a file and openhab can’t access.
Stop it, clear the folders again and reboot your entire system.

Also, Have literally just added a new version to git. Let me know.
@xela @s73ven

@Fixer Hmm… just reading your post again. You just deleted tmp and cache yeah… not the user data folder itself…