LightwaveRF - New LightwaveRF Binding

Need to sort them nulls out in the log tho

What I didn’t manage to do, was get it to succeed, but I need to try and time the update perfectly so the hub has rebooted somewhere between 0 and 5 retries :slight_smile: Could you maybe make retries a configurable option so I can increase it to test?

I’ll add a configurable option into the account parameters. Will try and get done later on, but im going to working on the binding thursday if not getting gen1 finished.

No worries, I’m in no rush for any of it and really appreciate all the work you’re doing

:+1:
All good, improvements always welcome.

This path all started as I wanted to create an app & webservice for my business data without the cost of development which I was looking in excess of 50k.
As that was bespoke I was finding it extremely difficult to even get started… So, with the help and support here I’m learning to code and will save myself a lot of money in the long run hopefully :slight_smile:

@xela Did you see my post the other day…
Forum crashed so all messages deleted for 6th&7th.

If not I’ll try and remember it all :joy:

I did, but I can’t remember it all, I’ll see if I still have the email

1 Like

Just uploaded a new version guys.
2.5.x: lightwaverf/org.openhab.binding.lightwaverf-2.5.13-SNAPSHOT_v3.0r1.jar at master · delid4ve/lightwaverf · GitHub

  • Fixed initial refresh data
  • General speed improvements
  • Gen1 support added (not complete) and need testers/helpers to finish integration
  • Fixed connection status for devices
  • Fixed energy reset command
  • Fixed voltage rest command (if the device has weird data on power/voltage/energy
  • Lots of other minor bug fixes

Your going to need to clear the cache after removing your existing jar as alot has been done to get this ready for a PR into the main repo.
Will upload 3.x version over the next couple of days.

Let me know if you find any bugs

Having some issues with this one, the websocket seems to randomly die.

My heating didnt come on this morning (openhab had changed the values locally), when I attempted to change I get the following

10:04:55.252 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'lw_LR1Heating_targetTemperature' received command 20.5
10:04:55.254 [INFO ] [arthome.event.ItemStatePredictedEvent] - lw_LR1Heating_targetTemperature predicted to become 20.5
10:04:55.259 [INFO ] [ternal.LightwaverfSmartCommandManager] - **Message not added to queue as we are shutting down**
10:04:55.261 [INFO ] [smarthome.event.ItemStateChangedEvent] - lw_LR1Heating_targetTemperature changed from 20 to 20.5
10:05:03.535 [INFO ] [smarthome.event.ItemStateChangedEvent] - lw_Monitor_Power changed from 1458 to 1469
10:05:03.537 [INFO ] [smarthome.event.ItemStateChangedEvent] - lw_Monitor_EnergyUsage changed from 3172.169 to 3172.175
10:05:11.722 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Closing a WebSocket due to null
10:05:11.726 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:lightwaverfaccount:alex' changed from ONLINE to OFFLINE
10:05:11.727 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d22:alex:LivingroomDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
10:05:11.728 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - WebSocket connection closed
10:05:11.728 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:OfficeDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
10:05:11.730 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Closing a WebSocket due to NullPointerException
10:05:11.730 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:RyanDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
10:05:11.731 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - WebSocket connection closed
10:05:11.732 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:h21:alex:LightwaveHub' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
10:05:11.733 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Closing a WebSocket due to Disconnected
10:05:11.733 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:BedroomDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
10:05:11.734 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - WebSocket connection closed

What’s odd, is it’s still receiving updates from the Monitor in the middle of it. It doesn’t recover though until I restart the binding

I’ll have a little look later and let you know. Jetty web socket implementation is a pain in the backside, slightest discrepancy in the forward chain and it disconnects it. Probably something very minuscule somewhere.

Can you get me the debug logs as this will show me where it failed.

Is it actively creating a debug log, or do I need to turn them on, I’m running in INFO at the moment

you’ll need to turn on and let it happen again (hopefully you can make it happen). I will look in the meantime but will be helpful.

Error is here somewhere, maybe just before this.

It’s done it a couple of times so should hopefully happen again, I’ve put it in debug now and I’ll monitor

1 Like

I moved to OH3, waiting for your 3.x version.

Will put the v3 up as soon as I get xela’s issue fixed :+1:

@pentiumdb here you go:

3.x: LightwaveRF-Jars/org.openhab.binding.lightwaverf-3.1.0-SNAPSHOT_3.0r2.jar at main · delid4ve/LightwaveRF-Jars · GitHub
2.5.x: LightwaveRF-Jars/org.openhab.binding.lightwaverf-2.5.13-SNAPSHOT_3.0r2.jar at main · delid4ve/LightwaveRF-Jars · GitHub

Updated to this version earlier and managed to make it drop out


18:21:48.131 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'lw_LR2Heating_targetTemperature' received command 15
18:21:48.134 [INFO ] [arthome.event.ItemStatePredictedEvent] - lw_LR2Heating_targetTemperature predicted to become 15
18:21:48.142 [INFO ] [smarthome.event.ItemStateChangedEvent] - lw_LR2Heating_targetTemperature changed from 20.0 to 15
18:21:48.142 [DEBUG] [connections.LightwaverfSmartWebsocket] - Message sent: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:48.145 [DEBUG] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Websocket message sending completed: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:49.148 [ERROR] [ternal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 135, command was null : 150 for Device: null, retrying again. Retry count 2
18:21:49.251 [DEBUG] [connections.LightwaverfSmartWebsocket] - Message sent: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:49.254 [DEBUG] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Websocket message sending completed: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:50.258 [ERROR] [ternal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 135, command was null : 150 for Device: null, retrying again. Retry count 3
18:21:50.364 [DEBUG] [connections.LightwaverfSmartWebsocket] - Message sent: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:50.369 [DEBUG] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Websocket message sending completed: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:51.372 [ERROR] [ternal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 135, command was null : 150 for Device: null, retrying again. Retry count 4
18:21:51.475 [DEBUG] [connections.LightwaverfSmartWebsocket] - Message sent: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:51.479 [DEBUG] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Websocket message sending completed: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:52.485 [ERROR] [ternal.LightwaverfSmartCommandManager] - Ok message not received for transaction: 135, command was null : 150 for Device: null, retrying again. Retry count 5
18:21:52.587 [DEBUG] [connections.LightwaverfSmartWebsocket] - Message sent: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:52.591 [DEBUG] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Websocket message sending completed: {"version":1,"class":"feature","operation":"write","direction":"request","senderId":"7ae89616-615d-418b-bcf7-7b15e489f131","items":[{"itemId":"135","payload":{"featureId":"5df8b6728522075debd21ad8-158-3157346060+1","value":150}}],"transactionId":135}
18:21:53.548 [DEBUG] [ternal.LightwaverfSmartCommandManager] - Message received: {"version":1,"senderId":1,"direction":"response","items":[{"itemId":"135","success":false,"error":{"code":1,"group":2,"source":"linkPlus"}}],"class":"feature","operation":"write","transactionId":43405622}
18:21:53.551 [DEBUG] [ternal.LightwaverfSmartCommandManager] - Processing device response for transaction 135
18:21:53.558 [DEBUG] [ternal.LightwaverfSmartCommandManager] - LightwaveRF - Response received for sent Command, TransactionID: 135
18:21:53.561 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Closing a WebSocket due to null
18:21:53.564 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:d22:alex:LivingroomDimmer
18:21:53.565 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:lightwaverfaccount:alex' changed from ONLINE to OFFLINE
18:21:53.569 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:d21:alex:KeiraDimmer
18:21:53.569 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - WebSocket connection closed
18:21:53.569 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:d21:alex:BedroomDimmer
18:21:53.567 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:d21:alex:OfficeDimmer
18:21:53.568 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:h21:alex:LightwaveHub
18:21:53.567 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:d21:alex:RyanDimmer
18:21:53.581 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:e11:alex:Monitor
18:21:53.581 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:LivingroomTRV1
18:21:53.579 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:OfficeTRV
18:21:53.578 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:Heating
18:21:53.576 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Closing a WebSocket due to NullPointerException
18:21:53.574 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:s22:alex:ConservatorySocket
18:21:53.571 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d22:alex:LivingroomDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.591 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:KeiraTRV
18:21:53.592 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:KeiraDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.594 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:BedroomDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.596 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:OfficeDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.597 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:h21:alex:LightwaveHub' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.598 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:d21:alex:RyanDimmer' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.600 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:e11:alex:Monitor' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.589 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - WebSocket connection closed
18:21:53.587 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:KitchenTRV
18:21:53.585 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:BedroomTRV
18:21:53.584 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:RyanTRV
18:21:53.583 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:LivingroomTRV2
18:21:53.610 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:t11:alex:LandingTRV
18:21:53.607 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:d21:alex:DownstairsDimmer
18:21:53.617 [DEBUG] [handler.LightwaverfSmartDeviceHandler] - bridgeStatusChanged OFFLINE for thing lightwaverf:s22:alex:KitchenSocket2
18:21:53.605 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - Closing a WebSocket due to Disconnected
18:21:53.601 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'lightwaverf:t11:alex:LivingroomTRV1' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
18:21:53.624 [WARN ] [connections.LightwaverfSmartWebsocket] - LightwaveRF - WebSocket connection closed

It did however recover around 90seconds later

So this is what’s causing it to close the websocket as I probably don’t have it handled.
Not sure why it didn’t accept it yet tho.
Could you do some tests sending different temps… see if there’s any pattern (ie 15 vs 15.0 as I see one value has decimal present)

Did the temp actually change? might be a bug with the transactionid so not getting the ok message to stop trying

Sorry on iPad so difficult to see the full log.
Just doesn’t want to reply for some reason…
Is that trv further away from hub than others? Maybe connection?
I can handle the error fine but want to work out why it’s not responding really.