Bram
(Bram van den Hout)
June 5, 2022, 9:39am
1
–EDIT–
I now see that there already is a GitHub issue for this.
opened 09:33AM - 03 Jun 22 UTC
integration: velux
### The problem
After updating to 2022.6.0 or 2022.6.1, I can still use the V… elux integration to retrieve or set the position of individual cover entries. Unfortunately, my automations (scheduled or manually started) no longer work.
### What version of Home Assistant Core has the issue?
2022.6.1
### What was the last working version of Home Assistant Core?
2022.5.5
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
velux
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/velux/
### Diagnostics information
_No response_
### Example YAML snippet
```yaml
velux:
host: !secret velux_ip
password: !secret velux_password
logger:
default: warn
logs:
homeassistant.components.velux: debug
pyvlx: debug
```
### Anything in the logs that might be useful for us?
```txt
2022-06-03 10:59:05 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall cover.open_cover (c:01G4MCJEGY59MDP1YBDTT08E6B): entity_id=['cover.office', 'cover.kitchen', 'cover.floor', 'cover.floor_door', 'cover.living_left', 'cover.living_second', 'cover.living_door']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1722, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/velux/cover.py", line 96, in async_open_cover
await self.node.open(wait_for_completion=False)
File "/usr/local/lib/python3.9/site-packages/pyvlx/opening_device.py", line 58, in open
await self.set_position(
File "/usr/local/lib/python3.9/site-packages/pyvlx/opening_device.py", line 47, in set_position
raise PyVLXException("Unable to send command")
pyvlx.exception.PyVLXException: <PyVLXException description="Unable to send command" />
2022-06-03 10:59:27 DEBUG (MainThread) [pyvlx] REC: <FrameNodeStatePositionChangedNotification node_id="6" state="5" current_position="0x0000" target="0x0000" current_position_fp1="0xF7FF" current_position_fp2="0xF7FF" current_position_fp3="0xF7FF" current_position_fp4="0xF7FF" remaining_time="0" time="2079-03-11 10:16:48"/>
2022-06-03 10:59:27 DEBUG (MainThread) [pyvlx] NodeUpdater process frame: <FrameNodeStatePositionChangedNotification node_id="6" state="5" current_position="0x0000" target="0x0000" current_position_fp1="0xF7FF" current_position_fp2="0xF7FF" current_position_fp3="0xF7FF" current_position_fp4="0xF7FF" remaining_time="0" time="2079-03-11 10:16:48"/>
2022-06-03 10:59:41 DEBUG (MainThread) [pyvlx] SEND: <FrameGetStateRequest/>
2022-06-03 10:59:41 DEBUG (MainThread) [pyvlx] REC: <FrameGetStateConfirmation gateway_state="GatewayState.GATEWAY_MODE_WITH_ACTUATORS" gateway_sub_state="GatewaySubState.IDLE"/>
```
### Additional information
Due to the changelogs pyvlx got bumped to 0.2.20 in dev #72678
( Changelog for pyvlx 0.2.20: https://github.com/Julius2342/pyvlx/releases/tag/0.2.20 )
The same error occurs with the service cover.set_cover_position
Home Assistant and KLF200 were restarted a few times for troubleshooting purposes
–EDIT–
Since 2022.06 my automation to set the position for four of my cover entities doesn’t work anymore.
At most 2 out of 4 entities will respond to the call.
service: cover.set_cover_position
data:
position: 25
target:
entity_id:
- cover.studeerkamer_rolluik
- cover.slaapkamer_rolluik_links
- cover.slaapkamer_rolluik_rechts
- cover.washok_rolluik
Also a cover.open_cover on the group of entities doesn’t work anymore.
As a workaround, I now have to address every entity separately.
I have other service calls, for instance : light.turn_on with multiple entities that work fine.
Seems that only the cover integration is affected.
I’m using the VELUX integration.
I’m running HAOS
Home Assistant Core 2022.6.2
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1