Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set operation mode via HA script #74

Closed
krzysiek2788 opened this issue Nov 30, 2022 · 2 comments
Closed

Cannot set operation mode via HA script #74

krzysiek2788 opened this issue Nov 30, 2022 · 2 comments

Comments

@krzysiek2788
Copy link

krzysiek2788 commented Nov 30, 2022

Hi,
I'm switching from Chomupashchuk's v2 integration to yours (finnaly have some time to do it) and there seams to be an issue with setting up operation mode (setting temperature is working fine) please look at my script and error I receive btw. I have Ariston Velis Evo. I tried also all type of manual.

  1. Script for setting temp and operation mode to manual

service: water_heater.set_temperature
data:
temperature: "{{states('input_number.temp_wody_kapiel')}}"
operation_mode: MANUAL
target:
entity_id: water_heater.bojler

  1. Error:

Logger: homeassistant.components.script.grzej_wode_na_kapiel
Source: custom_components/ariston/water_heater.py:139
Integration: Skrypt (documentation, issues)
First occurred: 09:34:40 (1 occurrences)
Last logged: 09:34:40

Grzej wodę na kąpiel: Error executing script. Unexpected error for call_service at pos 2: 'manual'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1744, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/config/custom_components/ariston/water_heater.py", line 139, in async_set_operation_mode
await self.device.async_set_water_heater_operation_mode(operation_mode)
File "/usr/local/lib/python3.10/site-packages/ariston/evo_device.py", line 82, in async_set_water_heater_operation_mode
await self.api.async_set_evo_mode(self.gw, EvoPlantMode[operation_mode])
File "/usr/local/lib/python3.10/enum.py", line 440, in getitem
return cls.member_map[name]
KeyError: 'manual'

@krzysiek2788
Copy link
Author

small update setting up operation mode from water heater entity is working, but somehow from service it is not tried: manual, MANUAL, 'manual', 'MANUAL',"manual","MANUAL" nothing is working

@krzysiek2788
Copy link
Author

Ok solved, after re-added integration service is working with operation_mode: MANUAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant