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

HomeKit Bridge blind covers no longer open and close #54684

Closed
ZetaPhoenix opened this issue Aug 16, 2021 · 8 comments · Fixed by #54727
Closed

HomeKit Bridge blind covers no longer open and close #54684

ZetaPhoenix opened this issue Aug 16, 2021 · 8 comments · Fixed by #54727
Assignees

Comments

@ZetaPhoenix
Copy link

ZetaPhoenix commented Aug 16, 2021

The problem

After updating to 2021.8.x I was no longer able to use voice commands or tap on the blind covers to open and close them as I could before.

The blinds still respond if I manually set the tilt angle but do not respond to open or close commands from the iOS devices.

What is version of Home Assistant Core has the issue?

core-2021.8.7

What was the last working version of Home Assistant Core?

core-2021.7.x

What type of installation are you running?

Home Assistant Container

Integration causing the issue

homekit

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit/

Example YAML snippet

#homekit:
  filter:
    include_domains:
      - cover
      - fan
      - light

Anything in the logs that might be useful for us?

2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): Recv decrypted: b'PUT /characteristics HTTP/1.1\r\nHost: Home\\032Assistant\\032Bridge\\0322266EB._hap._tcp.local\r\nContent-Length: 59\r\nContent-Type: application/hap+json\r\n\r\n{"characteristics":[{"aid":3920106818,"iid":10,"value":0}]}'
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): h11 Event: PAUSED
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): h11 Event: Request(method=b'PUT', target=b'/characteristics', headers=<Headers([(b'host', b'Home\\032Assistant\\032Bridge\\0322266EB._hap._tcp.local'), (b'content-length', b'59'), (b'content-type', b'application/hap+json')])>, http_version=b'1.1')
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): h11 Event: Data(data=bytearray(b'{"characteristics":[{"aid":3920106818,"iid":10,"value":0}]}'), chunk_start=False, chunk_end=False)
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): h11 Event: EndOfMessage(headers=<Headers([])>)
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_handler] ('10.x.1.55', 53066): Request PUT for path '/characteristics': {'host': 'Home\\032Assistant\\032Bridge\\0322266EB._hap._tcp.local', 'content-length': '59', 'content-type': 'application/hap+json'}
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_handler] ('10.x.1.55', 53066): Set characteristics content: {'characteristics': [{'aid': 3920106818, 'iid': 10, 'value': 0}]}
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.characteristic] client_update_value: TargetPosition to 0 from client: ('10.x.1.55', 53066)
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): Send encrypted: b'HTTP/1.1 204 No Content\r\n\r\n'
2021-08-16 00:31:03 DEBUG (MainThread) [pyhap.hap_protocol] ('10.x.1.55', 53066): h11 Event: NEED_DATA


### Additional information

_No response_
@probot-home-assistant
Copy link

homekit documentation
homekit source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@bdraco
Copy link
Member

bdraco commented Aug 16, 2021

Please post a dump of the state of the blind from the developer tools.

Also which integration provides it

It sounds like the supported features might be missing a bit

@ZetaPhoenix
Copy link
Author

current_tilt_position: 50
friendly_name: Main Bedroom Blinds
assumed_state: true
supported_features: 187
device_class: blind

image

This is provided by ESPHome yaml. The cover still works just fine with the open and close buttons in HA but it seems the command from HomeKit does not show up in the logbook.

@ZetaPhoenix
Copy link
Author

Ah, the image shows them closed right now but if I open them then the status updates and the tilt_position also changes. Right now Open sets the tilt position to 50% and closed to 100% as I have not added lift motors yet.

@bdraco
Copy link
Member

bdraco commented Aug 16, 2021

Its missing SUPPORT_SET_POSITION so its not bucketing correctly.

>>> 187 & 4
0

@ZetaPhoenix
Copy link
Author

ZetaPhoenix commented Aug 16, 2021

Did this change between 2021.7 and 2021.8?

@bdraco
Copy link
Member

bdraco commented Aug 16, 2021

Yes. It regressed in #53130

@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants