CCU3 with VPN IP Connection is OK, but no Bidcos-RF Results

Hello,

i would like to connect my Home Assistant with VPN (Fritzbox) to CCU3.

The connections to the CCU3 via VPN seem to work and the values ​​for IP are queried. I only get no values ​​for the radio components. I’ve tried for days now. Firewall in the CCU3 are all open.
I can also query the radio values ​​locally.

Can anyone give me a hint?

homematic: 
  interfaces:
  
#    HMIP_10_schalten:
#      host: 192.168.100.38
#      port: 2010
#      resolvenames: json
#      username: Admin
#      password: xenon789
    
    Funk_10_schalten:
      host: 192.168.20.145
      port: 2001
      resolvenames: false
      username: xxx
      password: xxx
2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic.connection] HMConnection: Creating server object

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] ServerThread.__init__

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] createProxies: Creating proxies

2021-02-25 06:56:33 INFO (SyncWorker_0) [pyhomematic._hm] Creating proxy Funk_10_schalten. Connecting to 192.168.20.145:2001

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.180.46

2021-02-25 06:56:33 INFO (SyncWorker_0) [pyhomematic._hm] Creating proxy ccu3_10_schalten. Connecting to 192.168.20.145:2001

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.180.46

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.__init__

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-Funk_10_schalten

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-ccu3_10_schalten

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] ServerThread.__init__: Setting up server

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] ServerThread.__init__: Registering RPC functions

2021-02-25 06:56:33 INFO (Thread-3) [pyhomematic._hm] Starting server at httpxxx://0.0.0.0:38147

2021-02-25 06:56:33 DEBUG (SyncWorker_0) [pyhomematic._hm] ServerThread.proxyInit: init('httpxxx://192.168.180.46:38147', 'homeassistant-Funk_10_schalten')

2021-02-25 06:56:33 INFO (SyncWorker_0) [pyhomematic._hm] Proxy for homeassistant-Funk_10_schalten initialized

**2021-02-25 06:56:33 WARNING (SyncWorker_0) [pyhomematic._hm] Skipping init for homeassistant-ccu3_10_schalten**

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:56:33 DEBUG (SyncWorker_4) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:56:36 ERROR (MainThread) [homeassistant.components.sensor] syncthru: Error on device update!

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 358, in _async_add_entity

await entity.async_device_update(warning=False)

File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update

await task

File "/usr/src/homeassistant/homeassistant/components/syncthru/sensor.py", line 157, in async_update

self._state = SYNCTHRU_STATE_HUMAN[self.syncthru.device_status()]

KeyError: <SyncthruState.TESTING: 4>

2021-02-25 06:56:36 ERROR (MainThread) [homeassistant.components.sensor] syncthru: Error on device update!

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 358, in _async_add_entity

await entity.async_device_update(warning=False)

File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update

await task

File "/usr/src/homeassistant/homeassistant/components/syncthru/sensor.py", line 157, in async_update

self._state = SYNCTHRU_STATE_HUMAN[self.syncthru.device_status()]

KeyError: <SyncthruState.TESTING: 4>

**2021-02-25 06:56:36 ERROR (MainThread) [homeassistant.components.sensor] syncthru: Error on device update!**

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 358, in _async_add_entity

await entity.async_device_update(warning=False)

File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update

await task

File "/usr/src/homeassistant/homeassistant/components/syncthru/sensor.py", line 157, in async_update

self._state = SYNCTHRU_STATE_HUMAN[self.syncthru.device_status()]

KeyError: <SyncthruState.TESTING: 4>

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httxxp://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:57:03 DEBUG (SyncWorker_0) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httxxxp://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:57:33 DEBUG (SyncWorker_10) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:58:03 DEBUG (SyncWorker_9) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:58:33 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:59:03 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] ServerThread.getAllSystemVariables: Getting all System variables via JSON-RPC

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.login

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: SysVar.getAll

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Method: Session.logout

2021-02-25 06:59:33 DEBUG (SyncWorker_14) [pyhomematic._hm] RPCFunctions.jsonRpcPost: API-Endpoint: httpxxx://192.168.20.145:80/api/homematic.cgi

Please format the logs properly. Also please give some insights on your networks / subnets.

In general for HomeMatic it is important, that the CCU by itself can reach the Home Assistant host. For this to work, your VPN needs to be set up in a way, that it provides the route to the remote network to the local devices. On my FritzBox the correct option for this is LAN-LAN-Kopplung. The other options won’t work.

hello danielperna84,
that was exactly the mistake. I didn’t have a LAN-LAN VPN connection. Thank you so much!