Created
December 29, 2021 20:45
-
-
Save hnykda/e545bb502223ea81ef81b0f65d8d6dcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-12-29 21:44:21 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: (PyViCareCommandError(...), 'Command failed with status code 422. Reason given was: VALIDATION_ERROR') | |
Traceback (most recent call last): | |
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 381, in _async_step | |
await getattr(self, handler)() | |
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 584, in _async_call_service_step | |
await service_task | |
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call | |
task.result() | |
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service | |
await handler.job.target(service_call) | |
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service | |
await self.hass.helpers.service.entity_service_call( | |
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 663, in entity_service_call | |
future.result() # pop exception if have | |
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 896, in async_request_call | |
await coro | |
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 700, in _handle_entity_call | |
await result | |
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 470, in async_set_hvac_mode | |
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode) | |
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run | |
result = self.fn(*self.args, **self.kwargs) | |
File "/usr/src/homeassistant/homeassistant/components/vicare/climate.py", line 276, in set_hvac_mode | |
self._circuit.setMode(vicare_mode) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareDevice.py", line 330, in setMode | |
r = self.service.setProperty( | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareCachedService.py", line 29, in setProperty | |
response = super().setProperty(property_name, action, data) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareService.py", line 52, in setProperty | |
return self.oauth_manager.post(url, post_data) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 91, in post | |
self.__handle_command_error(response) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 67, in __handle_command_error | |
raise PyViCareCommandError(response) | |
PyViCare.PyViCareUtils.PyViCareCommandError: (PyViCareCommandError(...), 'Command failed with status code 422. Reason given was: VALIDATION_ERROR') | |
2021-12-29 21:44:21 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139888902296048] Error handling message: Unknown error | |
Traceback (most recent call last): | |
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response | |
await func(hass, connection, msg) | |
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 527, in handle_execute_script | |
await script_obj.async_run(msg.get("variables"), context=context) | |
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1260, in async_run | |
await asyncio.shield(run.async_run()) | |
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 363, in async_run | |
await self._async_step(log_exceptions=False) | |
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 381, in _async_step | |
await getattr(self, handler)() | |
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 584, in _async_call_service_step | |
await service_task | |
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call | |
task.result() | |
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service | |
await handler.job.target(service_call) | |
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service | |
await self.hass.helpers.service.entity_service_call( | |
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 663, in entity_service_call | |
future.result() # pop exception if have | |
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 896, in async_request_call | |
await coro | |
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 700, in _handle_entity_call | |
await result | |
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 470, in async_set_hvac_mode | |
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode) | |
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run | |
result = self.fn(*self.args, **self.kwargs) | |
File "/usr/src/homeassistant/homeassistant/components/vicare/climate.py", line 276, in set_hvac_mode | |
self._circuit.setMode(vicare_mode) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareDevice.py", line 330, in setMode | |
r = self.service.setProperty( | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareCachedService.py", line 29, in setProperty | |
response = super().setProperty(property_name, action, data) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareService.py", line 52, in setProperty | |
return self.oauth_manager.post(url, post_data) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 91, in post | |
self.__handle_command_error(response) | |
File "/usr/local/lib/python3.9/site-packages/PyViCare/PyViCareAbstractOAuthManager.py", line 67, in __handle_command_error | |
raise PyViCareCommandError(response) | |
PyViCare.PyViCareUtils.PyViCareCommandError: (PyViCareCommandError(...), 'Command failed with status code 422. Reason given was: VALIDATION_ERROR') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment