Hello,
I’m using a “target-temperature” card in my dashboard. It allows me to display the status of a Sinope thermostat.
I get this error message when I try to lower the temperature.
Thank you for your advice.
Error message:
- Failed to perform the action climate/set_temperature. cannot access local variable ‘resp’ where it is not associated with a value
Card Contents:
features:
- type: target-temperature
type: tile
entity: climate.neviweb130_climate_th1124zb_g2_2
features_position: bottom
vertical: false
state_content:
- daily_kwh
- state
- current_temperature
name: Cuisine
Image dashboard:
The log details (ERROR):
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:960
First occurred: 3:13:27 PM (2 occurrences)
Last logged: 3:13:45 PM
Update for climate.neviweb130_climate_th1123zb_g2 fails
Update for climate.neviweb130_climate_th1124zb_g2_6 fails
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 716, in urlopen
httplib_response = self._make_request(
conn,
…<5 lines>…
chunked=chunked,
)
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 404, in _make_request
self._validate_conn(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 1061, in validate_conn
conn.connect()
~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/site-packages/urllib3/connection.py”, line 419, in connect
self.sock = ssl_wrap_socket(
~~~~~~~~~~~~~~~^
sock=conn,
^^^^^^^^^^
…<8 lines>…
tls_in_tls=tls_in_tls,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/urllib3/util/ssl.py", line 458, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
sock, context, tls_in_tls, server_hostname=server_hostname
)
File "/usr/local/lib/python3.13/site-packages/urllib3/util/ssl.py", line 502, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/ssl.py”, line 455, in wrap_socket
return self.sslsocket_class._create(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
sock=sock,
^^^^^^^^^^
…<5 lines>…
session=session
^^^^^^^^^^^^^^^
)
^
File “/usr/local/lib/python3.13/ssl.py”, line 1076, in _create
self.do_handshake()
~~~~~~~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/ssl.py”, line 1372, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1028)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.13/site-packages/requests/adapters.py”, line 667, in send
resp = conn.urlopen(
method=request.method,
…<9 lines>…
chunked=chunked,
)
File “/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py”, line 802, in urlopen
retries = retries.increment(
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File “/usr/local/lib/python3.13/site-packages/urllib3/util/retry.py”, line 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘neviweb.com’, port=443): Max retries exceeded with url: /api/device/652789/attribute?attributes=errorCodeSet1 (Caused by SSLError(SSLEOFError(8, ‘[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1028)’)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/config/custom_components/neviweb130/init.py”, line 598, in get_device_sensor_error
raw_res = requests.get(DEVICE_DATA_URL + str(device_id) +
“/attribute?attributes=errorCodeSet1”, headers=self._headers,
cookies=self._cookies, timeout=self._timeout)
File “/usr/local/lib/python3.13/site-packages/requests/api.py”, line 73, in get
return request(“get”, url, params=params, **kwargs)
File “/usr/local/lib/python3.13/site-packages/requests/api.py”, line 59, in request
return session.request(method=method, url=url, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.13/site-packages/requests/sessions.py”, line 589, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.13/site-packages/requests/sessions.py”, line 703, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.13/site-packages/requests/adapters.py”, line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘neviweb.com’, port=443): Max retries exceeded with url: /api/device/652789/attribute?attributes=errorCodeSet1 (Caused by SSLError(SSLEOFError(8, ‘[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1028)’)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 960, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 1320, in async_device_update
await hass.async_add_executor_job(self.update)
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/neviweb130/climate.py”, line 2252, in update
self.get_sensor_error_code(start)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File “/config/custom_components/neviweb130/climate.py”, line 2062, in get_sensor_error_code
device_error_code = self._client.get_device_sensor_error(self._id)
File “/config/custom_components/neviweb130/init.py”, line 602, in get_device_sensor_error
raise PyNeviweb130Error(“Cannot get device error code status…”)
custom_components.neviweb130.PyNeviweb130Error: Cannot get device error code status…