LightwaveRF Binding Updated

dont have //define things on line 64…

In Lw_Base.rules
Sorry think line 76, forgot I added in howto at top of file
try this:

Lw_Base_2019-10-25.rules.txt (25.6 KB)

no still no luck :frowning:

With what does the block need to be replaced @delid4ve

Just use the replacement file above and put your paths/username back in
And remove .txt extension

just did that does not work, logs dont register anything also…

Right back to basics:
You have 2 files yes:
Lw_Base.rules and Lw_Setup.items in the correct folders
Add both switches to habpanel for instance
Trigger the switch Lw_Setup
Now check this has created a new items file:
Lw_Base.items

Let me know the result of this

Screenshot 2020-01-05 at 10.56.45

can you please check if the Lw_Setup.items is ok?

Yes that’s fine
Now add the switches to a site map or habpanel and switch the setup switch on (only this switch at the moment)

no its not creating the file.

11:02:24.744 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘Lw_Setup’ received command ON

In the openhab log it should have created an entry

this is the only thing on the log
11:02:24.744 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘Lw_Setup’ received command ON

@delid4ve

Sorry, the switch may have been NULL to start, switch off then on

@delid4ve . yes thats created the items on the paperui.

do we need to add the switches manually?

Nope, now switch the authentication switch on/off/on (as this will be null too)

Then leave it 10 seconds and do the same for the update switch

there is an error on the Authentication switch
@delid4ve
11:11:08.757 [INFO ] [.rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/Authentication_Switche’ for the unknown item ‘Authentication_Switche’.

11:11:12.474 [INFO ] [smarthome.event.ItemStateChangedEvent] - LwGet_Run changed from OFF to ON

11:11:12.514 [INFO ] [smarthome.event.ItemStateChangedEvent] - LwGet_Run changed from ON to OFF

Any reason switch has an e on the end?

no added the file from the this thread. Ill change and try

@delid4ve that worked , whats next :slight_smile:

BTW huge huge thanks

Did you then run the update switch?
If so you should be done and all the devices added along with items
Add some switches etc and test it out
There’s a bug in that file for dimmers, look up this thread, haven’t changed yet as I’m waiting on lightwave for couple of bits to rework the whole thing

I am getting a bunch of errors @delid4ve

11:18:58.562 [WARN ] [del.core.internal.ModelRepositoryImpl] - Configuration model ‘Lw.items’ has errors, therefore ignoring it: [89,58]: missing EOF at ‘s’

[366,78]: mismatched character ‘’ expecting ‘"’

11:19:12.830 [INFO ] [smarthome.event.ItemStateChangedEvent] - LwGet_Out changed from sh: 0: Can’t open /etc/openhab2/scripts/Lw_Get.sh

11:18:58.562 [WARN ] [del.core.internal.ModelRepositoryImpl] - Configuration model ‘Lw.items’ has errors, therefore ignoring it: [89,58]: missing EOF at ‘s’

[366,78]: mismatched character ‘’ expecting ‘"’

11:18:59.588 [WARN ] [del.core.internal.ModelRepositoryImpl] - Configuration model ‘Lw.rules’ has errors, therefore ignoring it: [50,20]: missing ‘)’ at ‘‘sRoomLights_identify_Lock.state.toString == “” || Lightwave_S1’’

sh: 0: Can’t open /etc/openhab2/scripts/Lw_Get.sh to {“message”:“Structure not found”}