LightwaveRF Binding Updated

Hey @neil_renaud

First off happy new year.

I have not been on here for a few days so have just upgraded from ALPHA5 straight to ALPHA9 and all looks good to me, my dimming is working etc, in fact it all seems a little more responsive than before.

Any actions taken in the official LightwaveRF app are also showing up in the OpenHAB GUI but not the other way round, I guess this is normal behavior.

Thanks

1 Like

Happy New Year.

Glad it is working well.

Yeah I’m not sure the Lightwave App will replicate any actions you do in openhab it isn’t well coded and I’m not sure they’d be expecting other systems to send commands.

That being said I’d personally ditch the lightwave app and only use openhab you could easily create a sitemap to replicate the lightwave app functionality.

Also I assume that if you send a dimming command in the lightwave app, close the app and open it again later it probably don’t load the same dimming level you set…after all the one problem with Lightwave is it is one way communication so there is no way for the app to know the current setting.

Neil

I am having problems getting a dimmer working. If I set up an item as a switch it works OK but when I set a dimmer up I cannot get it working and don’t see any commands being sent in the log file. Clearly I have set up the dimmer wrongly.

My item is:
Dimmer Lamp_Master_Bedroom "Master Bedroom Lamp Dimmer [%d %%]" (gFF_MasterBedroom) { lightwaverf="room=1,device=3,type=DIMMER" }

and the sitemap entry is:
Slider item=Lamp_Master_Bedroom

with a rule based on the dimmer rule in the open demo rule file.

Can anyone point me to a correct set of declarations to get this to work?

P.S. I have Moods working OK. They start numbering from 0 (zero).

On your sitemap can you try adding:

Group item=gFF_MasterBedroom

And when you go into it see if the Dimmer works there?

I’ve never set them up individually as you mention (although I’m sure there will be a way).

Hey @neil_renaud

Just a quick one, I have noticed since the upgrade that the LightWave Wifi Link stats are no longer updating.

The log shows error converting message :-

2016-01-19 11:32:43.419 [DEBUG] [.l.i.LightwaveRFReceiverThread:118 ]- Message received from: /1.1.1.1 message:*!{"trans":293,"mac":"00:00:00","time":1453203224,"type":"hub","prod":"lwl","fw":"N2.91Z","uptime":950631,"timeZ":0,"lat":00.00,"long":-00.00,"duskT":1453220997,"dawnT":1453190795,"tmrs":0,"evns":0,"run":0,"macs":9,"ip":"1.1.1.1","devs":0}
2016-01-19 11:32:43.420 [ERROR] [l.internal.LightwaveRfWifiLink:173 ]- Error converting message: *!{"trans":293,"mac":"00:00:00","time":1453203224,"type":"hub","prod":"lwl","fw":"N2.91Z","uptime":950631,"timeZ":0,"lat":00.00,"long":-00.00,"duskT":1453220997,"dawnT":1453190795,"tmrs":0,"evns":0,"run":0,"macs":9,"ip":"1.1.1.1","devs":0}

Hey @neil_renaud

Just seen the ALPHA10 release which I have now upgraded, thanks.

No problem.

Hey @neil_renaud

Looks like its still broken for me on ALPHA10.

Yeah me too. On alpha10 too.

C

Hi,

Can you post some sample logs that are causing an issue?

Thanks,
Neil

Here you go, a typical bunch of errors. I get a batch like this roughly once an hour it seems:

> 2016-01-20 17:09:17.863 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Long], State[xx.xx]
> 2016-01-20 17:09:17.864 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Dawn], State[2016-01-20T07:55:10]
> 2016-01-20 17:09:17.865 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_IP], State[192.168.1.xx]
> 2016-01-20 17:09:17.865 [INFO ] [.l.internal.LightwaveRfBinding] - State was null for LW_WifiL_Ver type VERSION, message org.openhab.binding.lightwaverf.internal.command.LightwaveRfWifiLinkStatusMessage@cee09
> 2016-01-20 17:09:17.866 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Lat], State[xx.xx]
> 2016-01-20 17:09:17.866 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Dusk], State[2016-01-20T16:29:39]
> 2016-01-20 17:09:17.867 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Uptime], State[1062250]
> 2016-01-20 17:09:17.882 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Long], State[xx.xx]
> 2016-01-20 17:09:17.884 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Dawn], State[2016-01-20T07:55:10]
> 2016-01-20 17:09:17.885 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_IP], State[192.168.1.xx]
> 2016-01-20 17:09:17.886 [INFO ] [.l.internal.LightwaveRfBinding] - State was null for LW_WifiL_Ver type VERSION, message org.openhab.binding.lightwaverf.internal.command.LightwaveRfWifiLinkStatusMessage@3b19a7
> 2016-01-20 17:09:17.887 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Lat], State[xx.xx]
> 2016-01-20 17:09:17.888 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Dusk], State[2016-01-20T16:29:39]
> 2016-01-20 17:09:17.888 [INFO ] [.l.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[LW_WifiL_Uptime], State[1062250]

EDIT: Yeah you’re right, they’re not errors! Oops, sorry…

Hey,

That doesn’t look like any errors? What’s going wrong or not working as expected?

Neil

1 Like

Hey,

I’ve created a build with the energy monitor fix here: https://github.com/foxy82/openhab/releases/tag/1.8.0_alpha11

Neil

Hey @neil_renaud

I am testing Alpha11 build now, thanks.

Hi @neil_renaud,

The status messages are still broken with ALPHA11, here is the log output…

2016-02-02 12:35:47.268 [ERROR] [l.internal.LightwaveRfWifiLink:173 ]- Message not recognised: *!{"trans":666,"mac":"00:00:00","time":1454416620,"type":"hub","prod":"lwl","fw":"N2.91Z","uptime":2171250,"timeZ":0,"lat":00.00,"long":00.00,"duskT":1454432118,"dawnT":1454399231,"tmrs":0,"evns":0,"run":0,"macs":9,"ip":"0.0.0.0","devs":0}

2016-02-02 12:35:47.279 [DEBUG] [.l.i.LightwaveRFReceiverThread:118 ]- Message received from: /0.0.0.0 message:*!{"trans":666,"mac":"00:00:00","time":1454416620,"type":"hub","prod":"lwl","fw":"N2.91Z","uptime":2171250,"timeZ":0,"lat":00.00,"long":00.00,"duskT":1454432118,"dawnT":1454399231,"tmrs":0,"evns":0,"run":0,"macs":9,"ip":"0.0.0.0","devs":0}

Interesting the “prod” on your wifi link is different to mine. I’ve got a really old wifi link do you have a new one?

Fix is here: https://github.com/foxy82/openhab/releases/tag/1.8.0_alpha12

However note - I did a large refactor to split commands and messages better - whilst all the tests still pass I’ve yet to use this version in my own system.

Hey @neil_renaud,

I have just installed the update and am waiting for a status message, I will post up once one is received.

As for my WifiLink, yes its one of the newer models that doesn’t have a display and is much smaller.

Thanks

The way I forced a status message was to pull the power on the wifi link and then reconnect it after a minute. Then another few mins later it will update.

Hey @neil_renaud,

Great work, everything is now working except FW version, I had it as just VERSION, I have changed the item to the following :-

{lightwaverf="serial=wifilink,type=WIFILINK_VERSION"} 

Is that correct?

WIFILINK_FIRMWARE

Regards,
Neil