fustom / ariston-remotethermo-home-assistant-v3

Ariston NET remotethermo integration for Home Assistant based on API
MIT License
157 stars 37 forks source link

Turn off Velis #153

Closed pchaves1 closed 1 year ago

pchaves1 commented 1 year ago

Hello,

i'm trying to create an automation on Home Assistant 2023.8.3 to turn off my Velis, and i'm getting this error:

Logger: homeassistant.helpers.script.websocket_api_script Source: components/water_heater/init.py:314 First occurred: 16:34:04 (1 occurrences) Last logged: 16:34:04

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/water_heater/init.py", line 318, in async_turn_off await self.hass.async_add_executor_job(ft.partial(self.turn_off, *kwargs)) File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/water_heater/init.py", line 314, in turn_off raise NotImplementedError() NotImplementedError

Anyone else with this issue?

fustom commented 1 year ago

Hi @pchaves1!

I did not implement 'turn off' method for water heaters, but you can use 'ariston power' entity's 'turn off' switch.

pchaves1 commented 1 year ago

Done! thank you

fustom commented 1 year ago

With the latest version you can also use 'turn off'. https://github.com/fustom/ariston-remotethermo-home-assistant-v3/releases/tag/v0.15.3