Problem with setop of Homematic LAN adapter

Hi Sathya,

I have problems setting up Homegear which are probably related to the configuration of the Homematic LAN adapter.

I would really appreciate your help, because I was not able to fix the problems or find any hint what might cause it.

Below I provide a description of my configuration and log file output.

My environment is
Raspberry Pi 7
Homegear version 0.6.0
Hm-lan-cfg
Openhab 1.6.2 installed (maybei that affects things)

For the configuration I used the following settings in physicalinterfaces.conf:
[HomeMaticBidCoS]
id = hmklement
default = true
deviceType = hmcfglan
host = 192.168.178.46
port = 1000
lanKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (I used the AES key printed on the lan adapter)
rfKey = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (I used a custom key)

This is my log output after starting homegear.
homegear.log:
06/02/15 09:48:10.426 Info: Loading family module mod_philipshue.so
06/02/15 09:48:10.494 Info: Loading family module mod_max.so
06/02/15 09:48:10.572 Info: Loading family module mod_homematicwired.so
06/02/15 09:48:10.640 Info: Loading family module mod_homematicbidcos.so
06/02/15 09:48:10.747 Info: Loading family module mod_insteon.so
06/02/15 09:48:10.823 Info: Loading family module mod_miscellaneous.so
06/02/15 09:48:10.877 Info: Backing up database…
06/02/15 09:48:11.284 Module HomeMatic BidCoS: LAN-Konfigurationsadapter “hmklement”: Info: Enabling AES encryption for communication with HM-CFG-LAN.
06/02/15 09:48:11.284 Module HomeMatic BidCoS: LAN-Konfigurationsadapter “hmklement”: Warning: The RF AES key index specified in physicalinterfaces.conf for communication with your BidCoS devices is “0”. That means, the default AES key will be used (not yours!).
06/02/15 09:48:11.285 Initializing database…
06/02/15 09:48:11.289 Initializing family controller…
06/02/15 09:48:11.289 Module HomeMatic BidCoS: Loading XML RPC devices…
06/02/15 09:48:13.021 Info: Not initializing device family HomeMatic Wired, because no physical interface was found.
06/02/15 09:48:13.022 Info: Not initializing device family INSTEON, because no physical interface was found.
06/02/15 09:48:13.022 Info: Not initializing device family MAX!, because no physical interface was found.
06/02/15 09:48:13.022 Info: Not initializing device family Philips hue, because no physical interface was found.
06/02/15 09:48:13.022 Module Miscellaneous: Loading XML RPC devices…
06/02/15 09:48:13.025 Loading devices…
06/02/15 09:48:13.026 Module HomeMatic BidCoS: Loading HomeMatic BidCoS device 1
06/02/15 09:48:13.029 Module HomeMatic BidCoS: Loading HomeMatic BidCoS device 2
06/02/15 09:48:13.033 Module Miscellaneous: Loading Miscellaneous device 3
06/02/15 09:48:13.034 Start listening for packets…
06/02/15 09:48:13.034 Module HomeMatic BidCoS: LAN-Konfigurationsadapter “hmklement”: Error: Cannot start listening , because rfKey is not specified.
06/02/15 09:48:13.034 Initializing RPC client…
06/02/15 09:48:13.035 Starting XML RPC server RPCServer1 listening on 0.0.0.0:2001…
06/02/15 09:48:13.043 RPC Server (Port 2001): Info: RPC Server started listening on address 0.0.0.0 and port 2001
06/02/15 09:48:13.044 Starting XML RPC server RPCServer2 listening on 0.0.0.0:2002, SSL enabled…
06/02/15 09:48:13.061 Starting XML RPC server RPCServer3 listening on 0.0.0.0:2003, SSL enabled, authentification enabled…
06/02/15 09:48:13.061 RPC Server (Port 2002): Info: RPC Server started listening on address 0.0.0.0 and port 2002
06/02/15 09:48:13.077 Starting CLI server…
06/02/15 09:48:13.077 RPC Server (Port 2003): Info: RPC Server started listening on address 0.0.0.0 and port 2003
06/02/15 09:48:13.078 Initializing event handler…
06/02/15 09:48:13.078 Loading events…
06/02/15 09:48:13.079 Startup complete. Waiting for physical interfaces to connect.
06/02/15 09:48:33.843 RPC Server (Port 2001): Info: Connection from 127.0.0.1:43412 accepted. Client number: 4
06/02/15 09:48:33.846 RPC Server (Port 2001): Info: Client number 4 is calling RPC method: getDeviceDescription Parameters:
(String) BidCoS-RF
06/02/15 09:48:33.852 RPC Server (Port 2001): Info: Connection to client number 4 closed (3).
06/02/15 09:48:33.855 RPC Server (Port 2001): Info: Connection from 127.0.0.1:43413 accepted. Client number: 5
06/02/15 09:48:33.857 RPC Server (Port 2001): Info: Client number 5 is calling RPC method: getAllValues Parameters:
(Boolean) 1
06/02/15 09:48:33.868 RPC Server (Port 2001): Info: Connection to client number 5 closed (3).
06/02/15 09:48:33.872 RPC Server (Port 2001): Info: Connection from 127.0.0.1:43414 accepted. Client number: 6

After starting homegear –r and typing
families select 0
Devices select central
ls
I am not able to pir devices / cannot see the device.

I guess this is related to problems with the security keys:
6/02/15 09:48:11.284 Module HomeMatic BidCoS: LAN-Konfigurationsadapter “hmklement”: Info: Enabling AES encryption for communication with HM-CFG-LAN.
06/02/15 09:48:11.284 Module HomeMatic BidCoS: LAN-Konfigurationsadapter “hmklement”: Warning: The RF AES key index specified in physicalinterfaces.conf for communication with your BidCoS devices is “0”. That means, the default AES key will be used (not yours!).

06/02/15 09:48:13.034 Module HomeMatic BidCoS: LAN-Konfigurationsadapter “hmklement”: Error: Cannot start listening , because rfKey is not specified.

Hey,

set

currentRFKeyIndex = 1

below “rfKey” in /etc/homegear/physicalinterfaces.conf. Then it will work :wink:.

Cheers,

Sathya

Works.

Thanx for your help (and your amazing response time)!

Best,
Thomas