Hello Guenther,
I bought a KLF200 long time ago, but never got it set up. Then a few days ago I found out about the revolutions that happened with the KLF200 firmware and the binding. Today I decided to give it a go with OpenHab 2.4.
I updated the KLF200 FW to 0.2.0.0.71.0.
Downloaded org.openhab.binding.velux-1.14.0.201903162123.jar and put it in /usr/share/openhab2/addons/.
Created velux.cfg:
bridgeIPAddress=10.15.33.141
bridgeProtocol=slip
bridgeTCPPort=51200
bridgePassword=velux123
timeoutMsecs=15000
retries=15
Got the serial numbers of the two windows and two awning blinds from the log file and created velux.items:
String Velux_Bridge_Firmware "Firmware [%s]" { velux="thing=bridge;channel=firmware" }
String Velux_Bridge_Status "Status [%s]" { velux="thing=bridge;channel=status" }
String Velux_Bridge_CfgCheck "Config Check [%s]" { velux="thing=bridge;channel=check" }
Rollershutter Velux_DiningTable_WindowL "Venstre Vindue [%d]" { velux="thing=actuator;channel=serial#56:36:13:5A:0F:1D:08:74" }
Rollershutter Velux_DiningTable_WindowR "Højre Vindue [%d]" { velux="thing=actuator;channel=serial#56:36:13:5A:0F:1D:08:2C" }
Rollershutter Velux_DiningTable_MarkiseL "Venstre Markise [%d]" { velux="thing=actuator;channel=serial#53:29:0C:5A:10:31:03:B0" }
Rollershutter Velux_DiningTable_MarkiseR "Højre Markise [%d]" { velux="thing=actuator;channel=serial#53:29:0C:5A:10:31:03:4F" }
Also added the items to the sitemap, but it is not really working as expected. Here is a snippet from the log file after stopping openhab, power-cycling the KLF200 and starting openhab again:
2019-04-22 16:21:55.281 [INFO ] [nhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP='10.15.128.1' Username='openhab'].
2019-04-22 16:21:57.580 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
2019-04-22 16:21:57.915 [INFO ] [inding.velux.internal.VeluxActivator] - velux binding has been started.
2019-04-22 16:21:58.549 [INFO ] [.binding.velux.internal.VeluxBinding] - Active items are: [].
2019-04-22 16:21:58.559 [INFO ] [.binding.velux.internal.VeluxBinding] - velux refresh interval set to 15000 milliseconds.
2019-04-22 16:21:58.560 [INFO ] [.binding.velux.internal.VeluxBinding] - veluxConfig[bridgeProtocol=slip,bridgeIPAddress=10.15.33.141,bridgeTCPPort=51200,bridgePa
ssword=********,timeoutMsecs=15000,retries=15,refreshMsecs=15000,isBulkRetrievalEnabled=true]
2019-04-22 16:21:58.570 [INFO ] [b.core.service.AbstractActiveService] - velux Refresh Service has been started
2019-04-22 16:22:13.669 [INFO ] [g.velux.bridge.slip.io.SSLconnection] - Starting velux bridge connection.
2019-04-22 16:22:33.460 [INFO ] [ab.binding.velux.bridge.slip.SClogin] - velux bridge connection successfully established (login succeeded).
2019-04-22 16:23:03.488 [INFO ] [.velux.handler.VeluxBridgeHandlerOH1] - Found velux scenes:
Scene "Markiser åben" (index 1) with non-silent mode and 0 actions
Scene "Markiser luk" (index 0) with non-silent mode and 0 actions .
2019-04-22 16:23:18.505 [WARN ] [g.velux.things.VeluxExistingProducts] - update() failed as actuator (with index 0) is not registered.
2019-04-22 16:23:18.507 [WARN ] [g.velux.things.VeluxExistingProducts] - update() failed as actuator (with index 1) is not registered.
2019-04-22 16:23:18.510 [WARN ] [g.velux.things.VeluxExistingProducts] - update() failed as actuator (with index 2) is not registered.
2019-04-22 16:23:18.513 [WARN ] [g.velux.things.VeluxExistingProducts] - update() failed as actuator (with index 3) is not registered.
2019-04-22 16:23:18.560 [INFO ] [.velux.handler.VeluxBridgeHandlerOH1] - Found velux actuators:
Product "Markise 2" / OTHER (bridgeIndex=3,serial=53:29:0C:5A:10:31:03:B0,position=C800)
Product "Vindue 1" / WINDOW_OPENER (bridgeIndex=0,serial=56:36:13:5A:0F:1D:08:2C,position=0000)
Product "Vindue 2" / WINDOW_OPENER (bridgeIndex=1,serial=56:36:13:5A:0F:1D:08:74,position=C800)
Product "Markise 1" / OTHER (bridgeIndex=2,serial=53:29:0C:5A:10:31:03:4F,position=0000) .
2019-04-22 16:23:33.565 [INFO ] [.velux.handler.VeluxBridgeHandlerOH1] - velux Bridge is online, now.
After this, I try to activate the rollershutter item in the sitemap, but it doesn’t respond. Then suddenly one of the windows is opening. And about 10 minutes later I see this in the log:
2019-04-22 16:50:46.025 [INFO ] [.velux.handler.VeluxBridgeHandlerOH1] - handleCommandOnChannel(): updating of item Velux_DiningTable_WindowR (type ACTUATOR_SERIAL) failed.
Also, the bridge-items look like this:
Firmware -
Status GW_S_GWM/GW_SS_IDLE
Congif Check -
Is that expected?
Any suggestions on getting this to work reliably will be most welcome!
Best regards,
Mikkel Holm Olsen