Wooow, first of all, thank you very much for taking care of my problem.
I am not quite sure what the difference between broken and working example is. Therefore I send you my config from the configuration.yaml
homematic:
interfaces:
rf:
host: 192.168.xx.xx
port: 2001
resolvenames: json
username: xxx
password: xxx
ip:
host: 192.168.xx.xx
port: 2010
resolvenames: json
username: xxxxx
password: xxxxx
There is only one host and 2 interfaces: rf and ip. The installation is separate, HA and HM run on different servers. Is that okay?
Logging: I changed the logs to pyhomematic:debug. The result is very impressive. I have traced the initialization after HA-restart.
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic.connection] HMConnection: Creating server object
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.__init__
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] __init__: Creating proxies
2020-02-02 10:10:29 INFO (SyncWorker_7) [pyhomematic._hm] Creating proxy rf. Connecting to 192.168.xx.xx:2001
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.xx.xx
2020-02-02 10:10:29 INFO (SyncWorker_7) [pyhomematic._hm] Creating proxy ip. Connecting to 192.168.xx.xx:2010
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] LockingServerProxy.__init__: Getting local ip
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] LockingServerProxy.__init__: Got local ip 192.168.xx.xx
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.__init__
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-rf
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] RPCFunctions.__init__: iterating proxy = homeassistant-ip
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.__init__: Setting up server
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.__init__: Registering RPC functions
2020-02-02 10:10:29 INFO (Thread-2) [pyhomematic._hm] Starting server at http://0.0.0.0:37391
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.xx.xx:37391', 'homeassistant-rf')
2020-02-02 10:10:29 DEBUG (Thread-2) [pyhomematic._hm] RPCFunctions.listDevices: interface_id = homeassistant-rf, _devices_raw = {'rf': [], 'ip': []}
2020-02-02 10:10:29 INFO (SyncWorker_7) [pyhomematic._hm] Proxy initialized
2020-02-02 10:10:29 DEBUG (SyncWorker_7) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.xx.xx:37391', 'homeassistant-ip')
2020-02-02 10:10:29 INFO (SyncWorker_7) [pyhomematic._hm] Proxy initialized
After reboot RaspMatic (timestamp 10:23:05) you can see:
2020-02-02 10:22:20 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-02-02 10:22:59 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2020-02-02 10:23:05 DEBUG (SyncWorker_6) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.xx.xx:37391', 'homeassistant-rf')
2020-02-02 10:23:05 DEBUG (Thread-2) [pyhomematic._hm] RPCFunctions.listDevices: interface_id = homeassistant-rf, _devices_raw = {'rf': [{'ADDRESS': 'BidCoS-RF', 'CHILDREN': ['BidCoS-RF:0', 'BidCoS-RF:1', 'BidCoS-RF:2', 'BidCoS-RF:3', 'BidCoS-RF:4', 'BidCoS-RF:5', 'BidCoS-RF:6', 'BidCoS-RF:7', 'BidCoS-RF:8', 'BidCoS-RF:9', 'BidCoS-RF:10', 'BidCoS-RF:11', 'BidCoS-RF:12', 'BidCoS-RF:13', 'BidCoS-RF:14', 'BidCoS-RF:15', 'BidCoS-RF:16', 'BidCoS-RF:17', 'BidCoS-RF:18', 'BidCoS-RF:19', 'BidCoS-RF:20', 'BidCoS-RF:21', 'BidCoS-RF:22', 'BidCoS-RF:23', 'BidCoS-RF:24', 'BidCoS-RF:25', 'BidCoS-RF:26', 'BidCoS-RF:27', 'BidCoS-RF:28', 'BidCoS-RF:29', 'BidCoS-RF:30', 'BidCoS-RF:31', 'BidCoS-RF:32', 'BidCoS-RF:33', 'BidCoS-RF:34', 'BidCoS-RF:35', 'BidCoS-RF:36', 'BidCoS-RF:37', 'BidCoS-RF:38', 'BidCoS-RF:39', 'BidCoS-RF:40', 'BidCoS-RF:41', 'BidCoS-RF:42', 'BidCoS-RF:43', 'BidCoS-RF:44', 'BidCoS-RF:45', 'BidCoS-RF:46', 'B ......
2020-02-02 10:23:05 INFO (SyncWorker_6) [pyhomematic._hm] Proxy initialized
2020-02-02 10:23:05 DEBUG (SyncWorker_6) [pyhomematic._hm] ServerThread.proxyInit: init('http://192.168.xx.xx:37391', 'homeassistant-ip')
2020-02-02 10:23:09 DEBUG (Thread-2) [pyhomematic._hm] RPCFunctions.event: interface_id = homeassistant-rf, address = JEQ0734475:1, value_key = MOTION, value = False
2020-02-02 10:23:09 INFO (Thread-2) [pyhomematic.devicetypes.generic] HMGeneric.event: address=JEQ0734475:1, interface_id=homeassistant-rf, key=MOTION, value=False
I’m not sure but I think, the ip-connection is also re-initialized. But no more events are received for ip-devices.
Is this helping you any?
(I have adjusted the IP addresses / PW for security reasons, but I hope that this does not hinder the analysis)