Hi, I am new to HA and to the forum. So I hope I am in the right place.
I am trying to integrate my HomeMatic CCU3 into HA and set one of the variables on the CCU3 to trigger a program on the CCU3.
At the moment I am facing to problems:
- When starting HA with the integration I am getting an error message saying „ * RPCFunctions.jsonRpcPost: Exception: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)>“ despite the fact that I have set verify_ssl to false. And the connection seems to be working as I am getting values from my room thermostats
- When trying to set the system variable I am getting the message „Variable <…> not found on ccu3“
Below you can see my HomeMatic configuration in the configuration.yaml.
Blockquote
HomeMatic IP integration
homematic:
interfaces:
rf:
host: ip
ssl: false
verify_ssl: false
callback_ip: ip
resolvenames: “json”
username: “secret”
password: “secret”
wired:
host: ip
port: 2000
ssl: false
verify_ssl: false
callback_ip: ip
resolvenames: “json”
username: “secret”
password: “secret”
ip:
host: ip
port: 2010
ssl: false
verify_ssl: false
callback_ip: ip
username: “secret”
password: “secret”
groups:
host: ip
port: 9292
ssl: false
verify_ssl: false
callback_ip: ip
resolvenames: “json”
username: “secret”
password: “secret”
path: /groups
hosts:
ccu3:
host: ip
port: 2001
username: “secret”
password: “secret”
Blockquote
Thanks a lot
Peter
Thanks a lot. That has gotten me one step closer. I have one more challenge now. I am trying to set a string variable and am getting the below error, which seems like the call is expecting an integer rather than a string. Can you help me with that? Thanks a lot.
Peter
Logger: homeassistant.components.automation.switch_thermostats_to_heating
Source: components/automation/__init__.py:755
integration: Automation (documentation, issues)
First occurred: 11:51:55 (1 occurrences)
Last logged: 11:51:55
While executing automation automation.switch_thermostats_to_heating
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 755, in async_trigger
return await self.action_script.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1795, in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 463, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 527, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 557, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 525, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2761, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1141, in check_permissions
return await service_handler(call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/homematicip_local/services.py", line 206, in async_call_hmip_local_service
await _async_service_set_variable_value(hass=hass, service=service)
File "/config/custom_components/homematicip_local/services.py", line 423, in _async_service_set_variable_value
await control.central.set_system_variable(name=name, value=value)
File "/usr/local/lib/python3.12/site-packages/hahomematic/central/__init__.py", line 1007, in set_system_variable
await entity.send_variable(value=value)
File "/usr/local/lib/python3.12/site-packages/hahomematic/platforms/hub/entity.py", line 151, in send_variable
name=self.ccu_var_name, value=parse_sys_var(self.data_type, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/hahomematic/support.py", line 144, in parse_sys_var
return int(raw_value)
^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'Heizen'
Ok. I now changed the variable to a number. That way it works.