LightwaveRF - New LightwaveRF Binding

I have sonoff POWR2, i’ll flash it tomorrow with tasmota and make a measurement

@pentiumdb Or you can just drop my Sonoff binding in :wink:
Look in my git repo or search ewelink on here

Got local websocket connection on the powr2 so instant readings

But then I don’t know how accurate the POW is either :joy:

I’ll test it first :slight_smile: I’ll use my multimeters, one to see exact voltage and the other exact amp and calc the watts. I have very accurate multimeters

1 Like

It seems that POWR2 has a pretty accurate power meter. For the hairdryer, it was showing 1990W which is normal. Also, I tried on even more sockets and I got measurements from 1050W to 1700W. So I don’t think there is a way to fix this using a multiplier as each socket gave me a different measurement. SocketA always measured hairdryer at 1050, SocketB at 1400W, SocketC at 1200 and SocketD at 1700W.
It’s simply fck*d up :slight_smile:

Great.
Hmm… I’ll test some other sockets of mine over the coming days.
What about some ‘advanced’ parameters for each socket? That way if people do want to test each socket and apply correction they can (will most definitely be adding this in for mine)

So if a £15 Sonoff POW can get it right… a £60 (rrp) socket can’t… absolutely ludicrous. And I will be contacting lightwave about it.

Was the POW bang on the money against your meter?

Literally just bought another 7 sockets, they are going straight back, may aswell use BG sockets or the like and have access locally too

I have added some other items to the lightwave app to find there id, some dont appear to show an id,where for example the trv do show there id eg Serial : BF5302 in the app gui under the TRV setup

If you add manually on the binding you’ll see what’s needed, trv’s is indeed the serial no

Hi, initially i got server error 500, with adding a trv

then I get “UNINITIALIZED - HANDLER_CONFIGURATION_PENDING”


2021-05-01 16:36:43.840 [DEBUG] [ernal.LightwaverfSmartCommandManager] - Sending Ping Command
2021-05-01 16:36:43.840 [DEBUG] [ernal.LightwaverfSmartCommandManager] - Queueing Ping Command
2021-05-01 16:36:43.841 [DEBUG] [onnections.LightwaverfSmartWebsocket] - Sending message: {}
2021-05-01 16:36:43.841 [DEBUG] [onnections.LightwaverfSmartWebsocket] - LightwaveRF - Websocket message sending completed: {}
2021-05-01 16:37:06.435 [TRACE] [ernal.LightwaverfSmartCommandManager] - Message Queue is running
2021-05-01 16:37:08.636 [me.event.ThingUpdatedEvent] - Thing 'lightwaverf:1trv:BF5302' has been updated.
2021-05-01 16:37:08.638 [hingStatusInfoChangedEvent] - 'lightwaverf:1trv:BF5302' changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) to INITIALIZING
2021-05-01 16:37:08.637 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler@468ede0d': null
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler.initialize(LightwaverfConnectTRVHandler.java:56) ~[?:?]
2021-05-01 16:37:08.648 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'lightwaverf:1trv:BF5302': null
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler.initialize(LightwaverfConnectTRVHandler.java:56) ~[?:?]
2021-05-01 16:37:08.658 [hingStatusInfoChangedEvent] - 'lightwaverf:1trv:BF5302' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
2021-05-01 16:37:10.372 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 16:37:10.377 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate

Just on way home, got called out, will see what I added when I get back. Dimmer 100%, rest I’m not sure

no worries, if there is a certain setup I can remove/try please just pass comment, I am convinced some of the stuff I remove does not actually disappear …

Just tested the ups also, have connected the POWR2 between the LW socket and the ups. I get 330W from POWR2, I get 305W as output from ups(i guess the 25W are for ups operation) and I get 205W from LW socket.
image

This is all from the smart series side, you shouldn’t have this present

so this should be the correct start

2021-05-01 21:44:35.345 [hingStatusInfoChangedEvent] - 'lightwaverf:1bridge:8eebab37' changed from UNINITIALIZED to INITIALIZING
2021-05-01 21:44:35.349 [hingStatusInfoChangedEvent] - 'lightwaverf:1bridge:8eebab37' changed from INITIALIZING to ONLINE
2021-05-01 21:44:35.359 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1bridge_8eebab37_time-lightwaverf:1bridge:8eebab37:time' has been added.
2021-05-01 21:44:35.362 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1bridge_8eebab37_locationLongitude-lightwaverf:1bridge:8eebab37:locationLongitude' has been added.
2021-05-01 21:44:35.367 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1bridge_8eebab37_locationLatitude-lightwaverf:1bridge:8eebab37:locationLatitude' has been added.
2021-05-01 21:44:35.368 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1bridge_8eebab37_timeZone-lightwaverf:1bridge:8eebab37:timeZone' has been added.
2021-05-01 21:44:35.369 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1bridge_8eebab37_upTime-lightwaverf:1bridge:8eebab37:upTime' has been added.
2021-05-01 21:44:51.572 [INFO ] [ons.LightwaverfConnectReceiverThread] - Receiver thread running


That’s the one :+1:

got a lot of this coming

2021-05-01 21:23:39.987 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.lightw                           averf.internal.handler.LightwaverfConnectTRVHandler@44a453b1': null
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler.initialize(LightwaverfConnectTRVHandler.java:56) ~[?:?]
2021-05-01 21:23:39.990 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'lightwaverf:1trv:BF5302': null
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler.initialize(LightwaverfConnectTRVHandler.java:56) ~[?:?]
2021-05-01 21:23:48.228 [ERROR] [tions.LightwaverfConnectSenderThread] - Error waiting on queue: Address already in use (Bind failed)
2021-05-01 21:23:48.229 [ERROR] [tions.LightwaverfConnectSenderThread] - Error waiting on queue: Address already in use (Bind failed)
2021-05-01 21:23:48.240 [ERROR] [tions.LightwaverfConnectSenderThread] - Error waiting on queue: Address already in use (Bind failed)
2021-05-01 21:42:24.919 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.dispose()' on 'org.openhab.binding.lightwave                           rf.internal.handler.LightwaverfConnectAccountHandler@1acfcf50': null
        at org.openhab.binding.lightwaverf.internal.connections.LightwaverfConnectReceiverThread.stopReceiver(LightwaverfConnectReceiverThread.java:51) ~[?:?]
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectAccountHandler.dispose(LightwaverfConnectAccountHandler.java:87) ~[?:?]
2021-05-01 21:42:24.922 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while disposing handler of thing 'lightwaverf:1bridge:39073290': null
        at org.openhab.binding.lightwaverf.internal.connections.LightwaverfConnectReceiverThread.stopReceiver(LightwaverfConnectReceiverThread.java:51) ~[?:?]
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectAccountHandler.dispose(LightwaverfConnectAccountHandler.java:87) ~[?:?]
2021-05-01 21:42:39.381 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.dispose()' on 'org.openhab.binding.lightwave                           rf.internal.handler.LightwaverfConnectAccountHandler@38dc7ece': null

I think thats remnants of stuff being removed, after a clean up.

added a trv …

2021-05-01 22:04:43.675 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 22:04:43.682 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 22:04:46.621 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'heatState' for thing type 'lightwaverf:1trv:4362fba7', because channel type 'lightwaverf:heatstate' could not be found.
2021-05-01 22:04:46.624 [hingStatusInfoChangedEvent] - 'lightwaverf:1trv:4362fba7' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)
2021-05-01 22:04:46.626 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1trv_4362fba7_time-lightwaverf:1trv:4362fba7:time' has been added.
2021-05-01 22:04:46.628 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1trv_4362fba7_temperature-lightwaverf:1trv:4362fba7:temperature' has been added.
2021-05-01 22:04:46.633 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1trv_4362fba7_batteryLevel-lightwaverf:1trv:4362fba7:batteryLevel' has been added.
2021-05-01 22:04:46.636 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1trv_4362fba7_targetTemperature-lightwaverf:1trv:4362fba7:targetTemperature' has been added.
2021-05-01 22:04:46.637 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1trv_4362fba7_valveLevel-lightwaverf:1trv:4362fba7:valveLevel' has been added.
2021-05-01 22:04:50.217 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 22:04:50.235 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 22:04:53.552 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 22:05:09.963 [me.event.ThingUpdatedEvent] - Thing 'lightwaverf:1trv:4362fba7' has been updated.
2021-05-01 22:05:09.964 [me.event.ThingUpdatedEvent] - Thing 'lightwaverf:1trv:4362fba7' has been updated.
2021-05-01 22:05:09.966 [hingStatusInfoChangedEvent] - 'lightwaverf:1trv:4362fba7' changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) to INITIALIZING
2021-05-01 22:05:09.974 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler@2eec807e': null
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler.initialize(LightwaverfConnectTRVHandler.java:56) ~[?:?]
2021-05-01 22:05:09.977 [hingStatusInfoChangedEvent] - 'lightwaverf:1trv:4362fba7' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
2021-05-01 22:05:09.978 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'lightwaverf:1trv:4362fba7': null
        at org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler.initialize(LightwaverfConnectTRVHandler.java:56) ~[?:?]
2021-05-01 22:05:11.399 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate
2021-05-01 22:05:11.407 [WARN ] [ore.internal.thing.ThingTypeResource] - Cannot find channel type: lightwaverf:heatstate


the trv add initially does not ask for device location or id, but does after you accept and re edit

Yeah just had a quick look, trv not done. Started but had no testers at the time. Try the dimmer…

ok, how do i get the dimmer id

sort of educated guess,

2021-05-01 22:39:37.284 [hingStatusInfoChangedEvent] - 'lightwaverf:1dimmer:9d29384a' changed from UNINITIALIZED to INITIALIZING
2021-05-01 22:39:37.289 [INFO ] [dler.LightwaverfConnectDimmerHandler] - Device configured with RoomID:1 and DeviceID:2
2021-05-01 22:39:37.289 [INFO ] [dler.LightwaverfConnectDimmerHandler] - Registering Room Listener for ID:2
2021-05-01 22:39:37.290 [INFO ] [dler.LightwaverfConnectDimmerHandler] - Registering Device Listener for ID:1
2021-05-01 22:39:37.291 [hingStatusInfoChangedEvent] - 'lightwaverf:1dimmer:9d29384a' changed from INITIALIZING to ONLINE
2021-05-01 22:39:37.292 [.ItemChannelLinkAddedEvent] - Link 'lightwaverf_1dimmer_9d29384a_dimLevel-lightwaverf:1dimmer:9d29384a:dimLevel' has been added.

Have a look in the v1 docs, tells you in there. But yeah can probably work them out
Also if you enable debug logging and control the device from the lightwave app you should see them in the logs

i added > log:set TRACE org.openhab.binding.lightwaverf
but im not convinced its working should it be

 org.openhab.binding.lightwaverf.internal.handler.LightwaverfConnectTRVHandler