-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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 controller Somfy tahoma switch not working anymore after 2023.6.0 update #94184
Comments
Hey there @Jc2k, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) homekit_controller documentation |
Hi, I have the same problem and no access to the development tools tab since the 2023.6.0 update. |
I'm also having the same connection problems with three iDevices Switches and one iDevices Thermostat using HomeKit Controller after updating to 2023.6.0 from a working 2023.5.4. Interestingly three Bluetooth light-bulbs of a different brand and a vizio tv still work. `Logger: homeassistant.config_entries Config entry 'Switch 0004' for homekit_controller integration not ready yet: Timeout while waiting for connection to device 192.168.74.129:80; Retrying in background `2023-06-08 07:22:31.345 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.74.104:80] (id=04:redactedmac:2d): Accessories cache loaded (c#: 1) (gsn: None) (has broadcast_key: False) 2023-06-08 07:22:31.368 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x10\redacted\x0c' 2023-06-08 07:22:31.375 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 0 seconds 2023-06-08 07:22:32.132 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x80 2023-06-08 07:22:32.138 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 0 seconds 2023-06-08 07:22:33.267 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 msR+\redacted\x08%' 2023-06-08 07:22:33.269 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 1 seconds 2023-06-08 07:22:34.960 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xca\redacted\xcc\n' 2023-06-08 07:22:34.962 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 1 seconds 2023-06-08 07:22:37.497 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xa5\redacted\x11ql' 2023-06-08 07:22:37.499 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 2 seconds 2023-06-08 07:22:38.505 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.114: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.114\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x87\redacted\xa2~' 2023-06-08 07:22:38.508 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Switch 0012 [192.168.74.114:80] (id=76:87:46:82:10:B6): Connecting to accessory failed: M2: Missing public key; Retrying in 60 seconds 2023-06-08 07:22:40.562 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.129: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.129\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xfa\redacted\xdcU' 2023-06-08 07:22:40.565 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Switch 0004 [192.168.74.129:80] (id=9D:16:B2:D4:6D:0B): Connecting to accessory failed: M2: Missing public key; Retrying in 60 seconds 2023-06-08 07:22:41.302 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xb9W\redacted\x15' 2023-06-08 07:22:41.308 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 3 seconds 2023-06-08 07:22:46.843 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xd4I\redacted\x1a' 2023-06-08 07:22:46.846 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 0 seconds 2023-06-08 07:22:47.608 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x82\redacted\xdbB9' 2023-06-08 07:22:47.614 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 0 seconds 2023-06-08 07:22:48.797 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x9aBp\redacted\x7fe*$t' 2023-06-08 07:22:48.809 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 1 seconds 2023-06-08 07:22:50.501 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 |3\x9d\redacted\x8f,%' 2023-06-08 07:22:50.507 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 1 seconds 2023-06-08 07:22:53.043 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.74.104: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.74.104\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x83\redacted\xd5Nm&4y' 2023-06-08 07:22:53.046 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Thermostat 002 (2) [192.168.74.104:80] (id=04:redactedmac:2d): Connecting to accessory failed: M2: Missing public key; Retrying in 2 seconds |
Having the same issue with two iDevices wall switches
|
Same issue here. Almost missed work because the blinds didn't open. |
We are aware of problems with Somfy, it came up in beta. But we couldn't even get Linux to open a tcp connection to the Somfy in question so we weren't sure it was us. Has someone with Somfy tried downgrading? If you don't have Somfy, can you confirm what device you have and make sure you post debug logs. It may be a different issue. |
Downgrading to 2023.5.4 worked for me. The integration is back online. |
Hello |
same problem |
Please don't reply with "same problem". When replying please make sure you have confirmed in this thread what devices you have, post debug logs (like the good examples in this thread), whether it's all or some of your devices and whether rollback fixes it. Thank you. So far I see timeouts for somfy and a 400 error with idevice. I could easily miss a 3rd problem for anyone not providing useful information. |
Hello everyone, I am experiencing the same, after upgrading to 2023.6.0, my Homekit Somfy Tahoma integration is also "unable to connect"
I rolled back to 2023.4.6 (I skipped the May updates) and now the issue is gone.
|
Thank you. Thank log has a very important clue - the content type is wrong. This is due to a change in python 3.11. I'll look into a fix today. |
Potential fix here: https://github.com/Jc2k/aiohomekit/pull/294/files |
There are multiple devices and failures modes in play, so leaving this open until we have confirmation of success. |
Hi, same issue for me. Downgrading to 2023.5.4 worked for me. The integration is back online. I simply executed
|
When replying please make sure you have confirmed in this thread what devices you have, post debug logs (like the good examples in this thread) and whether it's all or some of your homekit devices. Thanks. Also, hopefully fix will be in 2023.6.1, so no more "+1" posts until then please. |
Meross underfloor thermostat and a couple of LG Tvs having a timeout issue i believe. please see log
|
Has anyone tried 2023.6.1 which has a homekit update to see if that resolved this for them? Appears it has worked for other devices that were having similar issues. |
2023.6.1 solved the issue for me |
not for me
|
The same for me with 2023.6.1 : "Timeout while waiting for connection to device 192.168.50.169:32082" |
For people who it is now working for - what device. Is it now working for anyone with a Somfy? For people still struggling - can you try turning the somfy box off and on? Also can you try this from your Ha box: curl --verbose http://192.168.1.12:32165 Obviously with the ip and port from your own individual error message. And can you post debug logs. |
For me still not working with 2023.6.1. My Nuki locks via homekit controller are working since 2023.6.0 and 2023.5.4 |
@Marc1200 please answer my questions so I can help you. |
Solve my problem, thank you |
sorry i was on my phone, i searched for the logs |
So your logs say Linux can't make a TCP connection to your device, it's like it's not there. You need to do the other 2 things I said before I can help you. |
okay, i will try and let you know |
Hi, thanks for the quick fix! |
@Robbe-B Please try the steps I already said. (#94184 (comment)) |
@Jc2k , I was too fast indeed, it's solved by restarting the tahoma, sorry for bothering. |
Great! I suspect we have accidentally found a minor DOS vulnerability in the Somfy here, and the restart is needed to recover from that. |
Hmmm, that's interesting, are you planning to get in touch with the software team of Somfy about this ? |
Not without proof, no. And as it's only on LAN it's not a high priority. |
Hello, OK for me after a Tahoma reboot with 2023.6.1 👍 |
after 2023.6.1 all normal |
If anyone is still having trouble after 2023.6.1, please reboot your Tahoma. If you are still having trouble after that, please start a new issue. |
iDevices now working with 2023.6.1. Thank for the quick fix! Appreciate all the hard work! |
It's working now at version 2023.6.1 after a restart of the tahoma switch, thanks for your help and effort @Jc2k |
Hi curl --verbose http://192.168.30.129:32165
I've got a connection refused at all. Maybe try to make step by step a new WIFI connection ? |
ping it's ok |
When you say you restarted the tahoma, what did you do? |
Power off and power on. Wait 10secs between off and on. |
Cloud it's ok for your information |
Ok it's very strange. I reset Thaoma and HomeKit it's ok without devices. |
Seems to be resolve with new email account and do a new factory reset. |
The problem
Since the new home assistant core 2023.6.0 the Somfy TaHoma switch cannot initialize via homekit controller.
What version of Home Assistant Core has the issue?
core-2023.6.0
What was the last working version of Home Assistant Core?
core-2023.5.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Homekit controller
Link to integration documentation on our website
https://www.home-assistant.io/integrations/homekit_controller/
Diagnostics information
2023-06-07 23:08:07.974 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.178.149:32075
2023-06-07 23:08:07.990 DEBUG (MainThread) [aiohomekit.protocol.tlv] sending [
2023-06-07 23:08:07.990 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.178.149: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.178.149\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xa1[\xae\xe0J\xcc\xc5{\xd2f\xb8\xfd\xfd\x11\xdb\x1bP\x8a\x93\xe8\x01\xc3\xf8\x05w\xe4\xe7\xbd9\x8c\x08E'
2023-06-07 23:08:08.014 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.178.149: raw response: bytearray(b'')
2023-06-07 23:08:08.015 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
2023-06-07 23:08:08.015 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma switch [192.168.178.149:32075] (id=70:E6:57:5B:77:FD): Connecting to accessory failed: M2: Missing public key; Retrying in 1 seconds
2023-06-07 23:08:10.547 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.178.149:32075
2023-06-07 23:08:10.558 DEBUG (MainThread) [aiohomekit.protocol.tlv] sending [
2023-06-07 23:08:10.558 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.178.149: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.178.149\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \xc4\x1aLFs\xa1\x1e\xe2\xf6X\x90\x12\xe5\x0b~\xac\x0fK\xe2\xd3\x1b\x17Nd%f\xa2\xdf\x8c>\x07,'
2023-06-07 23:08:10.578 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.178.149: raw response: bytearray(b'')
2023-06-07 23:08:10.578 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
2023-06-07 23:08:10.578 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma switch [192.168.178.149:32075] (id=70:E6:57:5B:77:FD): Connecting to accessory failed: M2: Missing public key; Retrying in 2 seconds
2023-06-07 23:08:14.271 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connection HomeKitConnection(host='192.168.178.149', port=32075) lost.
2023-06-07 23:08:24.540 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.178.149:32075] (id=70:E6:57:5B:77:FD): Accessories cache loaded (c#: 9) (gsn: None) (has broadcast_key: False)
2023-06-07 23:08:24.540 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.178.149:32075] (id=70:E6:57:5B:77:FD): Description updated: old=None new=HomeKitService(name='Somfy TaHoma switch', id='70:e6:57:5b:77:fd', model='TaHoma switch', feature_flags=<FeatureFlags.SUPPORTS_SOFTWARE_AUTHENTICATION: 2>, status_flags=<StatusFlags: 0>, config_num=9, state_num=5, category=<Categories.BRIDGE: 2>, protocol_version='1.1', type='_hap._tcp.local.', address='192.168.178.149', addresses=['192.168.178.149', 'fe80::6a4e:5ff:fe4d:3b1e', 'fd1a:3666:921c:d158:6a4e:5ff:fe4d:3b1e', 'fd1a:3666:921c:d158:1c3d:a64b:19fa:cbfd', 'fe80::6a4e:5ff:fe4d:3b1e', 'fd1a:3666:921c:d158:6a4e:5ff:fe4d:3b1e', 'fd1a:3666:921c:d158:1c3d:a64b:19fa:cbfd'], port=32075)
2023-06-07 23:08:24.541 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.178.149:32075] (id=70:E6:57:5B:77:FD): Disconnected event notification received; Triggering catch-up poll
2023-06-07 23:08:24.541 DEBUG (MainThread) [aiohomekit.zeroconf] 70:E6:57:5B:77:FD: Device rediscovered
2023-06-07 23:08:24.542 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Starting reconnect loop to 192.168.178.149:32075
2023-06-07 23:08:24.542 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.178.149:32075
2023-06-07 23:08:24.579 DEBUG (MainThread) [aiohomekit.protocol.tlv] sending [
2023-06-07 23:08:24.579 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.178.149: raw request: b'POST /pair-verify HTTP/1.1\r\nHost: 192.168.178.149\r\nContent-Length: 37\r\nContent-Type: HttpContentTypes.TLV\r\n\r\n\x06\x01\x01\x03 \x11\n\x92,X\xe2"\x80\xdd\xcb\xeb\xba\x1d\x95\xe4\x92\xfe[Z\xcc\x7f\xa0\xce\xad\xaa\x1a\xe7;\xcd^8Z'
2023-06-07 23:08:24.611 DEBUG (MainThread) [aiohomekit.controller.ip.connection] 192.168.178.149: raw response: bytearray(b'')
2023-06-07 23:08:24.612 DEBUG (MainThread) [aiohomekit.protocol.tlv] receiving [
2023-06-07 23:08:24.612 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma switch [192.168.178.149:32075] (id=70:E6:57:5B:77:FD): Connecting to accessory failed: M2: Missing public key; Retrying in 0 seconds
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: