hass-opnsense: OPNSense sensors all unavailable: Unexpected get_telemetry error err=

Since upgrading to OPNSense 24.1 today, all of my opnsense sensors in HA are no longer working and I get the following in my log.


2024-01-30 11:30:13.703 ERROR (SyncWorker_7) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:13.738 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:30:23.659 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2024-01-30 11:30:25.025 ERROR (SyncWorker_9) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:25.195 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:30:35.770 ERROR (SyncWorker_2) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:35.771 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:30:56.551 ERROR (SyncWorker_7) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:30:56.552 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:31:37.541 ERROR (SyncWorker_1) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:31:37.543 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:32:58.247 ERROR (SyncWorker_4) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:32:58.248 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
2024-01-30 11:34:19.123 ERROR (SyncWorker_3) [custom_components.opnsense.pyopnsense] Unexpected get_telemetry error err=<ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>, type(err)=<class 'xmlrpc.client.ProtocolError'>
2024-01-30 11:34:19.124 ERROR (MainThread) [custom_components.opnsense] Unexpected error fetching opnsense OPNsense state data: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in async_update_data
    await hass.async_add_executor_job(lambda: data.update())
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 96, in <lambda>
    await hass.async_add_executor_job(lambda: data.update())
                                              ^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 315, in update
    self._state["telemetry"] = self._get_telemetry()
                               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 224, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/__init__.py", line 248, in _get_telemetry
    return self._client.get_telemetry()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 101, in inner
    raise err
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 98, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 992, in get_telemetry
    data = self._exec_php(script)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 88, in inner
    response = func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/opnsense/pyopnsense/__init__.py", line 131, in _exec_php
    response = self._get_proxy().opnsense.exec_php(script)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/xmlrpc/client.py", line 1196, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for 5oFsThBJLGCAugCQR5cdM%2BRMAUpfUmBEB%2BmGClJYT9B5HuNgBCnTN4ltw8uKlPJZdCcvKqQ0HdbiMypv:UYLHTlSNuN7KnoZCFul2ywrOAZopD%2FLjVWkF7ckPUNzJdVPuyxV7wh4LaDc2VtmXsNlO3lxHjZosZkb%2B@10.27.0.1/xmlrpc.php: 500 Internal Server Error>

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 65 (8 by maintainers)

Most upvoted comments

Gentlemen, the problem is acknowledged, you can see the details in previous posts, there’s no need to confirm. 😃

Update: I spoke with @travisghansen, he’s busy now but he promised he’ll work on it next week.

So please have patience and stay tuned. 😃

I love the passion of everyone. Let’s keep the communication positive! I have admittedly had very limited time over the past year or so to maintain the project.

I understand the frustrations for sure. I intend to take some time today to get everything updated to work with current versions. If all goes well I should have a new release shortly.

If you can’t commit code to help the fix, donate money to allow him to do this as a full-time job, or useful information about the issue - don’t post.

If you want updates on progress, then subscribe to the issue and you will be notified when it’s updated.

Sorry @travisghansen for posting in your repo, and @alexdelprete thanks for your last update.

If you cant maintain your project. Turn it off so people know they need to search for an alternative. If you cant keep your promise. Dont promise it.

But i dont want to Start any discussions here. Just my opinion

If you cant maintain your project.

This is an open-source project, there are no SLAs, the author is doing the best he can during his FREE TIME that he takes away from his family and duties to give something to the public. Unlike you, that don’t contribute to anything other than writing stupid things like your post.

Idiots like you shouldn’t use these kind of software because you’re too stupid to understand what it takes to maintain them.

Turn it off so people know they need to search for an alternative.

No need to stop anything. Nobody stops anybody to search for alternatives. But you can’t understand simple concepts like this, because you’re an idiot.

If you cant keep your promise. Dont promise it.

There are no PROMISES or SLAs in open-source projects like this, you clearly don’t know what you are talking about because you’re an ignorant idiot.

But i dont want to Start any discussions here. Just my opinion

You don’t want, but you started it, typical of an idiot, with a stupid opinion.

To all others: Travis has a lot of personal and professional duties, if you can’t afford to wait, I’m sorry but this is the reality. He’s a nice guy and does the best he can with his available time.

Please have patience and don’t show disrespect like the ignorant @Mangomc.

I have a strong feeling that the ones who will have patience and respect will soon be rewarded.

Typically in our World that people like you need to offend others because its the Internet. You wrote He promised it a few days ago I know how Hard it is. But my opinion is what i Wrote. If you need to be rude to me because its not your opinion maybe you are the Idiot.

If you cant maintain your project.

This is an open-source project, there are no SLAs, the author is doing the best he can during his FREE TIME that he takes away from his family and duties to give something to the public. Unlike you, that don’t contribute to anything other than writing stupid things like your post.

Idiots like you shouldn’t use these kind of software because you’re too stupid to understand what it takes to maintain them.

Turn it off so people know they need to search for an alternative.

No need to stop anything. Nobody stops anybody to search for alternatives. But you can’t understand simple concepts like this, because you’re an idiot.

If you cant keep your promise. Dont promise it.

There are no PROMISES or SLAs in open-source projects like this, you clearly don’t know what you are talking about because you’re an ignorant idiot.

But i dont want to Start any discussions here. Just my opinion

You don’t want, but you started it, typical of an idiot, with a stupid opinion.

To all others: Travis has a lot of personal and professional duties, if you can’t afford to wait, I’m sorry but this is the reality. He’s a nice guy and does the best he can with his available time.

Please have patience and don’t show disrespect like the ignorant @Mangomc.

I have a strong feeling that the ones who will have patience and respect will soon be rewarded.

Gentlemen, the problem is acknowledged, you can see the details in previous posts, there’s no need to confirm. 😃

Update: I spoke with @travisghansen, he’s busy now but he promised he’ll work on it next week.

So please have patience and stay tuned. 😃

Week almost done, i lost my hope

Typically in our World that people like you need to offend others because its the Internet.

When you come in Rome feel free to let me know and I’ll be glad to repeat the same things I wrote looking straight in your eyes. I’m a 50y man, never been worried of speaking my mind to anybody.

You wrote He promised it a few days ago

Yes, and if you had a minimum of intelligence you would understand what I wrote: I said he would work on it, not that there would be a fix by today. You can’t even comprehend a simple sentence, that says a lot about you.

I know how Hard it is. But my opinion is what i Wrote. If you need to be rude to me because its not your opinion maybe you are the Idiot.

You have been disrespectful towards the dev (and me), so I’m just treating you like you deserve. You need to be educated, like a kid, and this is the same approach I use with my 4 children. I don’t treat them gently when they’re disrespectful like you, that’s probably how you’ve been raised, and we can see the results: too many disrespectful people in the world thinking that everything is owed to them for free, and the only thing they can do is complain without giving back anything.

You clearly don’t have an idea of how hard it is to maintain a project, because you don’t maintain any project and you never contributed to one, and probably never even contributed economically. You’re the typical guy that wants everything free and thinks that has the right to disrespectfully complain too.

This is my last post to you, you’ve already taken too much of my time and attention, and you don’t deserve ANYTHING.

If you can’t commit code to help the fix, donate money to allow him to do this as a full-time job, or useful information about the issue - don’t post.

If you want updates on progress, then subscribe to the issue and you will be notified when it’s updated.

Sorry @travisghansen for posting in your repo, and @alexdelprete thanks for your last update.

Hope this gets fixed soon… This is messing up my presence detection automations. 😃

@Mangomc, that’s simple man… You have 3 options.

1-> Rollback your OPNSense, while the fix don’t come out (As most of us)

2->Fixed it for your self and contribute to the project.

3->Wait for the fix and contribute with your money if it’s possible.

More than that is jibber jabber…

Be respectful, open source is a community for a reason.

Sorry @travisghansen for posting in your repo, and @alexdelprete thanks for your last update.

Thanks for your kind words John.

Thanks as usual Travis.

Hope this gets fixed soon… This is messing up my presence detection automations. 😃

my auto turn off lamps are not working anymore 😭

I have got the same issue as @knom above

image

Everyone give the new version a try and let me know if you have any issues or not so we can close this.

You install 23.7 iso, restore your config.xml via System: Configuration and update one time so you get to latest 23.7, thats it 😃

Did you have a message? When it’s red is when the pending notices should show a problem.

Yes there was a crashdump warning which I cleared. Your plugin is working better then I am this morning!

v0.1.17 has fixed everything for me! Thanks @travisghansen

i am on 24.1.1, how can i revert to the most recent build that works with this plugin? thank you for the help!

This is a question for the OPNsense forum more than here. Anyway, just wait a little, Travis said in his last post that a fix is coming. A little bit of patience and you can stay on 24.1.1.

Just wondering… will you be posting HERE upon successfully implementing the changes? 😃 Can’t wait to see it… so I’m keeping this tab open 😉

Heyhey, I’m on the latest version, but still getting timeout issues like this…

And my OPNSense Sensors are all on & off… (meaning switching between unavailable and available).

This used to be different before this wave of updates. Sensors just used to be constantly available…

Weird…

This error originated from a custom integration.

Logger: custom_components.opnsense.pyopnsense
Source: custom_components/opnsense/pyopnsense/__init__.py:100
Integration: OPNsense (documentation, issues)
First occurred: 08:05:21 (5 occurrences)
Last logged: 08:08:29

Unexpected get_telemetry error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>
Unexpected get_system_info error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>
Unexpected _list_services error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>
Unexpected get_services error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>

Thanks for the update it’s working with 24.1 @travisghansen

There is an update to 24.1.1, as soon as I update it’s stops working again. With an opnsense-revert -r 24.1 opnsense, it immediately starts working again.

t works fine for me for 24.1.1: Screenshot 2024-02-13 at 21 42 14 Screenshot 2024-02-13 at 21 43 02

Thanks for the hard work @travisghansen !

Travis - thanks for the work - how do I update to the new version?

Give your home assistant a restart and HACS should show the update available.

No need to restart HA: just click the 3 dots, and Update Info. HACS will check for updates of that integration.

image

Travis - thanks for the work - how do I update to the new version?

Give your home assistant a restart and HACS should show the update available.

PS: @travisghansen - working well here, thank you for the fix 😃

Thanks @travisghansen for your time by doing this integration, I hope you fix it as soon as your time and sanity (LoL) allows… Sorry for the terrible english… May the force be with you!

Pode falar portugues tambem 😄

Que bacana, não sabia que falava português ou sempre podemos contar com o tradutor LoL… Enfim, preciso melhorar meu inglês de qualquer maneira, leio bem mas a escrita (por falta de prática) às vezes falha… os próximos comentários serão mais legíveis em inglês, é uma promessa! LoL Reforçando, boa sorte na correção, em Python sou horrível então nem vou oferecer ajuda, mas se precisar de apoio com testes ou coisa do gênero pode chamar!