Hi.
I am new to Home Assistant. It runs on RPi4. I have enabled Somfy integration via the wizard that appeared automatically based on local network detection of Tahoma Premium gateway. I enabled the ingeration, everything seemed to be fine. Until I tried using it…
It behaves just weird. I have a scene that is supposed to close window blinds defined like this
- id: '1637227670160'
name: Zavrit zaluzie
entities:
cover.zaluzie_koupelna:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Koupelna
supported_features: 255
device_class: blind
state: closed
cover.zaluzie_loznice_fix:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Loznice-Fix
supported_features: 255
device_class: blind
state: closed
cover.zaluzie_loznice_otviratelne:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Loznice-Otviratelne
supported_features: 255
device_class: blind
state: open
cover.zaluzie_pokoj_fix:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Pokoj-Fix
supported_features: 255
device_class: blind
state: open
cover.zaluzie_pokoj_otviratelne:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Pokoj-Otviratelne
supported_features: 255
device_class: blind
state: open
cover.zaluzie_portal_fix:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Portal-Fix
supported_features: 255
device_class: blind
state: open
cover.zaluzie_portal_otviratelne:
current_position: 0
current_tilt_position: 0
friendly_name: Zaluzie-Portal-Otviratelne
supported_features: 255
device_class: blind
state: open
icon: mdi:blinds
I run the scene and end up with this. Two blinds closed partially at the same position. Two blinds closed partially in a different position than the other two. Two blinds untouched and kept fully open. One blind closed as expected.
And in the log I see this
Logger: homeassistant.components.websocket_api.http.connection
Source: components/somfy/cover.py:182
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:35:41 (1 occurrences)
Last logged: 14:35:41
[547465353056] message: internal_error, data: None
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
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 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 667, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 863, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 704, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 314, in async_activate
await async_reproduce_state(
File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 116, in async_reproduce_state
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 110, in worker
await platform.async_reproduce_states( # type: ignore
File "/usr/src/homeassistant/homeassistant/components/cover/reproduce_state.py", line 125, in async_reproduce_states
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/cover/reproduce_state.py", line 107, in _async_reproduce_state
await hass.services.async_call(
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 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 667, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 863, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 704, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cover/__init__.py", line 330, in async_close_cover_tilt
await self.hass.async_add_executor_job(
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/somfy/cover.py", line 182, in close_cover_tilt
self._cover.orientation = 100
File "/usr/local/lib/python3.9/site-packages/pymfy/api/devices/blind.py", line 17, in orientation
self.send_command(command)
File "/usr/local/lib/python3.9/site-packages/pymfy/api/devices/base.py", line 19, in send_command
self.api.send_command(self.device.id, command)
File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 58, in send_command
response = self.post(f"/device/{device_id}/exec", json=command)
File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 89, in post
return self._request("post", path, json=json)
File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 134, in _request
self._check_response(response)
File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 147, in _check_response
raise CLIENT_ERROR.get(message, ClientException)(response.json())
pymfy.api.error.ClientException: message: internal_error, data: None
What is wrong? Is it a problem in Tahoma? Or Home Assistant? Or my configuration is wrong?