LightwaveRF Binding Updated

Can you pm me the files above so I can check them

@jgsmarthome did you get working?

@delid4ve.

Yes all working now, thanks for the help, me know if you fix the dimmer which you mentioned had issues. I am now working on the graphical interface - habpanel, its the part i enjoy most.

1 Like

You need to replace line 318
Features_OpenhabItemType == "String "){
with
(Features_OpenhabItemType == "String " || Features_OpenhabItemType == "Dimmer ")){
That should fix the dimmers

Youā€™ll need to run ā€˜Updateā€™ again after that edit

Thanks @xela

LATEST FILES
have removed hard paths
have added dimmer as per Alex Fix

Lw_Base_v2.0_2019-10-25.rules.txt (25.7 KB)
Lw_Setup_v2.0_2019-10-25.items.txt (32 Bytes)

1 Like

@delid4ve is this the new megasolution from LWRF or just an update of V2?

Just an update of v2, Iā€™m gonna chase lw this week as havenā€™t heard since before xmas

Still no update back from lightwave (chased but no response)

Does anyone have any unresolved issues with v1 or v2 versions of my script that still need looking at while Iā€™m waiting?

Oh and if people donā€™t want access to anything other than switches (no power monitoring etc) and have amazon you can use this:

Hi Iā€™m trying to get this to work, however I keep seeing this message under ā€œcontrolā€ in the PaperUI

sh: 0: Canā€™t open /openhab/conf/scripts/Lw_Get.sh
sh: 0: Canā€™t open /openhab/conf/scripts/Lw_Get.sh

Its under one of the switches, i cannot switch anything on or off & above any switches i have ā€œcommandā€

Thanks.

Have you run the setup, and is that the correct path for your openhab installation (/openhab/conf/)

I pushed the button ā€œLw_Setupā€ first then after about 10 seconds I pushed ā€œLwUpdateā€. it poplulates the control panel with the above image and thats where im stuck. paths are correct, it makes the other scripts ok just not that one.

Is /openhab/conf the correct path?

Yep, all the other scripts appear in the ā€œscriptsā€ folder, just not that one for some reason.

Can you check the logs in /openhab/userdata/logs/ (specifically openhab.log) and see if there are any errors when you run setup

2020-01-11 09:02:09.251 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ā€˜LwUpdate_Createā€™: For input string: ā€œ{ā€œmessageā€:ā€œUnauthorizedā€}ā€

I have this in my log after i try and run it - my username and password is correct - just tested it in the smart connect login page on lightwave?

Can you set Authentication_Switch to ON and see if you get any errors

Clicked the auth switch but it turns straight back off again?

It will, but you should see:

Authentication Rule Ran

and

Refresh Token Changed Toā€¦

In the logs if it did anything

this is in the log:

2020-01-11 11:24:00.700 [INFO ] [ipse.smarthome.model.script.Lw.Rules] - Refresh Token Changed To Refresh_Token (Type=StringItem, State={null}, Label=null, Category=null)