danielperna84 / hahomematic

Python 3 Interface for Home Assistant to interact with HomeMatic devices
MIT License
130 stars 22 forks source link

Device values not updating after initialization #1599

Closed qgjdev closed 2 months ago

qgjdev commented 2 months ago

I agree to the following

The problem

I manually installed the homematicip_local custom component through the release zip file because I don't have HACS installed, so I put the homematicip_local into config/custom_components inside my Home Assistant installation. After initializing the component, everything is displayed just as it should. However, after that, device values aren't being updated anymore.

Since I'm quite new to this topic, I'm not sure if there's anything I should configure inside the CCU or the component.

Thanks a lot in advance for any feedback.

What version of HomematicIP (local) has the issue?

1.63.0

What was the last working version of HomematicIP (local)?

No response

What type of installation are you running?

Home Assistant Container

What type of installation are you running for your homematic backend?

RaspberryMatic Standalone

Which version of your homematic backend are you running?

3.75.7

What hardware are you running for your system?

Pi4

Which config details do you use

Which interfaces do you use?

Diagnostics information (no logs here)

config_entry-homematicip_local-7d64aaf8169d3de843b3678ea41bdfe2.json

Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!

2024-06-21 21:15:22.317 WARNING (MainThread) [hahomematic.caches.dynamic] Pending PONG mismatch: There is a mismatch between send ping events and received pong events for HA instance HMIP CCU3 Serverraum-HmIP-RF. Possible reason 1: You are running multiple instances of HA with the same instance name configured for this integration. Re-add one instance! Otherwise this HA instance will not receive update events from your CCU. Possible reason 2: Something is stuck on the CCU or hasn't been cleaned up. Therefore, try a CCU restart.Possible reason 3: Your setup is misconfigured and HA is not able to receive events from the CCU.
2024-06-21 21:16:44.806 ERROR (MainThread) [hahomematic.client.xml_rpc] OSError on HMIP CCU3 Serverraum-HmIP-RF: (113, 'Host is unreachable')
2024-06-21 21:16:47.878 ERROR (MainThread) [hahomematic.client.json_rpc] GET_ALL_SYSTEM_VARIABLES failed: ClientConnectorError [(ConnectionKey(host='homematic-raspi.wb', port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7be796af4d50>, proxy=None, proxy_auth=None, proxy_headers_hash=1619640337413624838), OSError(113, "Connect call failed ('192.168.0.4', 443)"))] 
2024-06-21 21:16:50.950 ERROR (MainThread) [hahomematic.client.json_rpc] GET_ALL_PROGRAMS failed: ClientConnectorError [(ConnectionKey(host='homematic-raspi.wb', port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7be796af4d50>, proxy=None, proxy_auth=None, proxy_headers_hash=1619640337413624838), OSError(113, "Connect call failed ('192.168.0.4', 443)"))] 
2024-06-21 21:16:50.950 ERROR (MainThread) [hahomematic.client.json_rpc] GET_ALL_DEVICE_DATA for HmIP-RF failed: ClientConnectorError [(ConnectionKey(host='homematic-raspi.wb', port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7be796af4d50>, proxy=None, proxy_auth=None, proxy_headers_hash=1619640337413624838), OSError(113, "Connect call failed ('192.168.0.4', 443)"))] 
2024-06-21 21:16:59.366 ERROR (MainThread) [hahomematic.client.json_rpc] GET_ALL_SYSTEM_VARIABLES failed: ClientConnectorError [(ConnectionKey(host='homematic-raspi.wb', port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7be796af4d50>, proxy=None, proxy_auth=None, proxy_headers_hash=1619640337413624838), OSError(113, "Connect call failed ('192.168.0.4', 443)"))] 
2024-06-21 21:17:02.438 ERROR (MainThread) [hahomematic.client.json_rpc] GET_ALL_PROGRAMS failed: ClientConnectorError [(ConnectionKey(host='homematic-raspi.wb', port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7be796af4d50>, proxy=None, proxy_auth=None, proxy_headers_hash=1619640337413624838), OSError(113, "Connect call failed ('192.168.0.4', 443)"))] 
2024-06-21 21:23:40.725 WARNING (MainThread) [hahomematic.caches.dynamic] Pending PONG mismatch: There is a mismatch between send ping events and received pong events for HA instance HMIP CCU3 Serverraum-HmIP-RF. Possible reason 1: You are running multiple instances of HA with the same instance name configured for this integration. Re-add one instance! Otherwise this HA instance will not receive update events from your CCU. Possible reason 2: Something is stuck on the CCU or hasn't been cleaned up. Therefore, try a CCU restart.Possible reason 3: Your setup is misconfigured and HA is not able to receive events from the CCU.
2024-06-21 21:30:41.099 DEBUG (MainThread) [hahomematic.central] check_connection: Checking connection to server HMIP CCU3 Serverraum
2024-06-21 21:30:41.100 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Removing expired pending PONG: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:25:25.823197
2024-06-21 21:30:41.100 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Increase pending PING count: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:30:41.100028
2024-06-21 21:30:41.100 DEBUG (MainThread) [hahomematic.client.xml_rpc] __ASYNC_REQUEST: ('ping', ("HMIP CCU3 Serverraum-HmIP-RF#21.06.2024 21:30:41.100028'",))
2024-06-21 21:30:56.113 DEBUG (MainThread) [hahomematic.central] check_connection: Checking connection to server HMIP CCU3 Serverraum
2024-06-21 21:30:56.113 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Removing expired pending PONG: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:25:40.836288
2024-06-21 21:30:56.115 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Increase pending PING count: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:30:56.113219
2024-06-21 21:30:56.115 DEBUG (MainThread) [hahomematic.client.xml_rpc] __ASYNC_REQUEST: ('ping', ("HMIP CCU3 Serverraum-HmIP-RF#21.06.2024 21:30:56.113219'",))
2024-06-21 21:30:56.322 DEBUG (MainThread) [custom_components.homematicip_local.control_unit] Scheduled fetching of programs and sysvars for HMIP CCU3 Serverraum
2024-06-21 21:30:56.478 DEBUG (MainThread) [hahomematic.client.json_rpc] POST method: SysVar.getAll
2024-06-21 21:30:56.479 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_ALL_SYSTEM_VARIABLES: Getting all system variables
2024-06-21 21:30:56.627 DEBUG (MainThread) [hahomematic.client.json_rpc] POST_SCRIPT: method: ReGa.runScript [get_system_variables_ext_marker.fn]
2024-06-21 21:30:56.627 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_SYSTEM_VARIABLES_EXT_MARKERS: Getting system variables ext markers
2024-06-21 21:30:56.627 DEBUG (MainThread) [hahomematic.platforms.hub] UPDATE_SYSVAR_ENTITIES: 12 sysvars received for HMIP CCU3 Serverraum
2024-06-21 21:30:56.752 DEBUG (MainThread) [hahomematic.client.json_rpc] POST method: Program.getAll
2024-06-21 21:30:56.752 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_ALL_PROGRAMS: Getting all programs
2024-06-21 21:30:56.752 DEBUG (MainThread) [hahomematic.platforms.hub] UPDATE_PROGRAM_ENTITIES: 1 programs received for HMIP CCU3 Serverraum
2024-06-21 21:31:11.128 DEBUG (MainThread) [hahomematic.central] check_connection: Checking connection to server HMIP CCU3 Serverraum
2024-06-21 21:31:11.128 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Removing expired pending PONG: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:25:55.849393
2024-06-21 21:31:11.128 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Increase pending PING count: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:31:11.128515
2024-06-21 21:31:11.128 DEBUG (MainThread) [hahomematic.client.xml_rpc] __ASYNC_REQUEST: ('ping', ("HMIP CCU3 Serverraum-HmIP-RF#21.06.2024 21:31:11.128515'",))
2024-06-21 21:31:26.140 DEBUG (MainThread) [hahomematic.central] check_connection: Checking connection to server HMIP CCU3 Serverraum
2024-06-21 21:31:26.140 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Removing expired pending PONG: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:26:10.861035
2024-06-21 21:31:26.140 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Increase pending PING count: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:31:26.140526
2024-06-21 21:31:26.140 DEBUG (MainThread) [hahomematic.client.xml_rpc] __ASYNC_REQUEST: ('ping', ("HMIP CCU3 Serverraum-HmIP-RF#21.06.2024 21:31:26.140526'",))
2024-06-21 21:31:26.296 DEBUG (MainThread) [custom_components.homematicip_local.control_unit] Scheduled fetching of device firmware update data for updating devices for HMIP CCU3 Serverraum
2024-06-21 21:31:26.323 DEBUG (MainThread) [custom_components.homematicip_local.control_unit] Scheduled fetching of programs and sysvars for HMIP CCU3 Serverraum
2024-06-21 21:31:26.473 DEBUG (MainThread) [hahomematic.client.json_rpc] POST method: SysVar.getAll
2024-06-21 21:31:26.473 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_ALL_SYSTEM_VARIABLES: Getting all system variables
2024-06-21 21:31:26.622 DEBUG (MainThread) [hahomematic.client.json_rpc] POST_SCRIPT: method: ReGa.runScript [get_system_variables_ext_marker.fn]
2024-06-21 21:31:26.622 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_SYSTEM_VARIABLES_EXT_MARKERS: Getting system variables ext markers
2024-06-21 21:31:26.623 DEBUG (MainThread) [hahomematic.platforms.hub] UPDATE_SYSVAR_ENTITIES: 12 sysvars received for HMIP CCU3 Serverraum
2024-06-21 21:31:26.752 DEBUG (MainThread) [hahomematic.client.json_rpc] POST method: Program.getAll
2024-06-21 21:31:26.752 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_ALL_PROGRAMS: Getting all programs
2024-06-21 21:31:26.752 DEBUG (MainThread) [hahomematic.platforms.hub] UPDATE_PROGRAM_ENTITIES: 1 programs received for HMIP CCU3 Serverraum
2024-06-21 21:31:41.155 DEBUG (MainThread) [hahomematic.central] check_connection: Checking connection to server HMIP CCU3 Serverraum
2024-06-21 21:31:41.155 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Removing expired pending PONG: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:26:25.872510
2024-06-21 21:31:41.156 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Increase pending PING count: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:31:41.155853
2024-06-21 21:31:41.156 DEBUG (MainThread) [hahomematic.client.xml_rpc] __ASYNC_REQUEST: ('ping', ("HMIP CCU3 Serverraum-HmIP-RF#21.06.2024 21:31:41.155853'",))
2024-06-21 21:31:56.167 DEBUG (MainThread) [hahomematic.central] check_connection: Checking connection to server HMIP CCU3 Serverraum
2024-06-21 21:31:56.167 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Removing expired pending PONG: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:26:40.886113
2024-06-21 21:31:56.167 DEBUG (MainThread) [hahomematic.caches.dynamic] PING PONG CACHE: Increase pending PING count: HMIP CCU3 Serverraum-HmIP-RF - 21 for ts: 2024-06-21 21:31:56.167671
2024-06-21 21:31:56.167 DEBUG (MainThread) [hahomematic.client.xml_rpc] __ASYNC_REQUEST: ('ping', ("HMIP CCU3 Serverraum-HmIP-RF#21.06.2024 21:31:56.167671'",))
2024-06-21 21:31:56.325 DEBUG (MainThread) [custom_components.homematicip_local.control_unit] Scheduled fetching of programs and sysvars for HMIP CCU3 Serverraum
2024-06-21 21:31:56.509 DEBUG (MainThread) [hahomematic.client.json_rpc] DO_RENEW_LOGIN: method: Session.renew [14xVZDKdsl]
2024-06-21 21:31:56.638 DEBUG (MainThread) [hahomematic.client.json_rpc] POST method: SysVar.getAll
2024-06-21 21:31:56.638 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_ALL_SYSTEM_VARIABLES: Getting all system variables
2024-06-21 21:31:56.782 DEBUG (MainThread) [hahomematic.client.json_rpc] POST_SCRIPT: method: ReGa.runScript [get_system_variables_ext_marker.fn]
2024-06-21 21:31:56.782 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_SYSTEM_VARIABLES_EXT_MARKERS: Getting system variables ext markers
2024-06-21 21:31:56.782 DEBUG (MainThread) [hahomematic.platforms.hub] UPDATE_SYSVAR_ENTITIES: 12 sysvars received for HMIP CCU3 Serverraum
2024-06-21 21:31:56.912 DEBUG (MainThread) [hahomematic.client.json_rpc] POST method: Program.getAll
2024-06-21 21:31:56.912 DEBUG (MainThread) [hahomematic.client.json_rpc] GET_ALL_PROGRAMS: Getting all programs
2024-06-21 21:31:56.912 DEBUG (MainThread) [hahomematic.platforms.hub] UPDATE_PROGRAM_ENTITIES: 1 programs received for HMIP CCU3 Serverraum

Additional information

No response

SukramJ commented 2 months ago

OSError(113, "Connect call failed ('192.168.0.4', 443)

Check, if your CCU firewall setup is according to the docs. Your CCU must be able to talk to HA. Search for docker in the docs.