[SOLVED] Unable to Add Accessory - Homekit bridge

EDIT: I set a static IP via Home Assistant’s interface and this seems to have been the culprit. Setting it back to automatic and setting the static IP by reserving it in the DHCP server for the HA MAC address resolved the issue…I don’t know why.

It started when all the lights in my HA stopped responding via HomeKit bridge. I decided I would reconnect the homekit bridge by recreating it in HA. But when I try to add the accessory to my Home app on my iPhone, I get a cryptic “Unable to Add Accessory” message from the Home app.

I looked into the diagnostics for the integration and the only error-related message I could find there is the following:

2024-03-01 11:39:25.122 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.165', 49539) (None): Connection lost to HASS Bridge: [Errno 104] Connection reset by peer

192.168.1.165 is my iPhone.

I’ve tried:

  • Recreating the homekit bridge
  • Changing devices included in the bridge
  • Including no devices
  • Including a single device of type light
  • Restarting HA
  • Restarting HAOS
  • Rebooting my router
  • Rebooting my Apple TV and Homepod Mini
  • Making sure all are up to date
  • Making sure HA is up to date
  • Creating a new home in the Home app
  • Removing and re-adding the Apple TV + Homepod within Home Assistant
  • Changing the Home hub from the Apple TV to the Homepod
  • Restarted my phone
  • Did a complete reset of the Home data using the mobileconfig profile found here: http://appldnld.apple.com/iOSProfiles/HomeKitReset.mobileconfig (THIS WILL ERASE YOUR HOME SETTINGS including from iCloud)

I’m not sure what to try next

Full log for posterity

2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Name to HASS Bridge
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: SerialNumber to default
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Version to 01.01.00
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: FirmwareRevision to 2024.2.5
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Manufacturer to Home Assistant
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Model to Bridge
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: SerialNumber to homekit.bridge
2024-03-01 12:58:57.199 DEBUG (MainThread) [homeassistant.components.homekit.accessories] Add "light.light_study_lamp" as "Light"
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Name to Light - Study Lamp
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: SerialNumber to default
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: FirmwareRevision to 4.2.6
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Manufacturer to Meross
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Model to msl120dr 4.0.0
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: SerialNumber to light.light_study_lamp
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: HardwareRevision to 4.0.0
2024-03-01 12:58:57.199 DEBUG (MainThread) [pyhap.characteristic] set_value: Brightness to 100
2024-03-01 12:58:57.200 DEBUG (MainThread) [pyhap.characteristic] set_value: ColorTemperature to 153
2024-03-01 12:58:57.200 DEBUG (MainThread) [pyhap.characteristic] set_value: Saturation to 75
2024-03-01 12:58:57.200 DEBUG (MainThread) [pyhap.characteristic] set_value: On to 0
2024-03-01 12:58:57.200 DEBUG (MainThread) [homeassistant.components.homekit] Driver start for HASS Bridge
2024-03-01 12:58:57.200 INFO (MainThread) [pyhap.accessory_driver] Starting accessory HASS Bridge on addresses ['192.168.1.52', 'fe80::9ea9:ea15:762b:e18d'], port 21064.
2024-03-01 12:58:57.200 DEBUG (MainThread) [pyhap.accessory_driver] Starting server.
2024-03-01 12:58:57.210 DEBUG (MainThread) [pyhap.accessory_driver] Get accessories response: [{'aid': 1, 'services': [{'iid': 1, 'type': '3E', 'characteristics': [{'iid': 2, 'type': '14', 'perms': ['pw'], 'format': 'bool'}, {'iid': 3, 'type': '20', 'perms': ['pr'], 'format': 'string'}, {'iid': 4, 'type': '21', 'perms': ['pr'], 'format': 'string'}, {'iid': 5, 'type': '23', 'perms': ['pr'], 'format': 'string'}, {'iid': 6, 'type': '30', 'perms': ['pr'], 'format': 'string'}, {'iid': 7, 'type': '52', 'perms': ['pr'], 'format': 'string'}]}, {'iid': 8, 'type': 'A2', 'characteristics': [{'iid': 9, 'type': '37', 'perms': ['pr', 'ev'], 'format': 'string'}]}]}, {'aid': 2452562633, 'services': [{'iid': 1, 'type': '3E', 'characteristics': [{'iid': 2, 'type': '14', 'perms': ['pw'], 'format': 'bool'}, {'iid': 3, 'type': '20', 'perms': ['pr'], 'format': 'string'}, {'iid': 4, 'type': '21', 'perms': ['pr'], 'format': 'string'}, {'iid': 5, 'type': '23', 'perms': ['pr'], 'format': 'string'}, {'iid': 6, 'type': '30', 'perms': ['pr'], 'format': 'string'}, {'iid': 7, 'type': '52', 'perms': ['pr'], 'format': 'string'}, {'iid': 8, 'type': '53', 'perms': ['pr'], 'format': 'string'}]}, {'iid': 9, 'type': '43', 'characteristics': [{'iid': 10, 'type': '25', 'perms': ['pr', 'pw', 'ev'], 'format': 'bool'}, {'iid': 11, 'type': '8', 'perms': ['pr', 'pw', 'ev'], 'format': 'int', 'maxValue': 100, 'minStep': 1, 'minValue': 0, 'unit': 'percentage'}, {'iid': 12, 'type': '13', 'perms': ['pr', 'pw', 'ev'], 'format': 'float', 'maxValue': 360, 'minStep': 1, 'minValue': 0, 'unit': 'arcdegrees'}, {'iid': 13, 'type': '2F', 'perms': ['pr', 'pw', 'ev'], 'format': 'float', 'maxValue': 100, 'minStep': 1, 'minValue': 0, 'unit': 'percentage'}, {'iid': 14, 'type': 'CE', 'perms': ['pr', 'pw', 'ev'], 'format': 'uint32', 'maxValue': 371, 'minStep': 1, 'minValue': 153}]}]}]
2024-03-01 12:58:57.210 DEBUG (MainThread) [pyhap.accessory_driver] Starting mDNS.
2024-03-01 12:58:57.210 DEBUG (MainThread) [pyhap.accessory_driver] Starting accessory HASS Bridge
2024-03-01 12:58:57.211 DEBUG (MainThread) [pyhap.accessory_driver] AccessoryDriver for HASS Bridge started successfully
2024-03-01 12:58:57.211 DEBUG (SyncWorker_16) [pyhap.accessory_driver] Writing of accessory state to disk
2024-03-01 12:58:57.214 INFO (MainThread) [homeassistant.components.homekit.util] Pincode: 664-42-663
2024-03-01 12:58:57.225 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state light.light_study_lamp=off; min_color_temp_kelvin=2695, max_color_temp_kelvin=6535, min_mireds=153, max_mireds=371, supported_color_modes=[<ColorMode.COLOR_TEMP: 'color_temp'>, <ColorMode.RGB: 'rgb'>], color_mode=None, brightness=None, color_temp_kelvin=None, color_temp=None, hs_color=None, rgb_color=None, xy_color=None, togglex_mode=None, friendly_name=Light - Study Lamp, supported_features=0 @ 2024-03-01T12:58:44.740888-05:00>
2024-03-01 12:58:57.226 DEBUG (MainThread) [pyhap.characteristic] set_value: On to 0
2024-03-01 12:59:28.506 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723): Connection made to HASS Bridge
2024-03-01 12:59:28.507 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): Recv unencrypted: b'POST /pair-setup HTTP/1.1\r\nHost: HASS\\032Bridge\\03291437F._hap._tcp.local\r\nContent-Length: 6\r\nContent-Type: application/pairing+tlv8\r\n\r\n\x00\x01\x00\x06\x01\x01'
2024-03-01 12:59:28.509 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): h11 Event: Request(method=b'POST', headers=<Headers([(b'host', b'HASS\\032Bridge\\03291437F._hap._tcp.local'), (b'content-length', b'6'), (b'content-type', b'application/pairing+tlv8')])>, target=b'/pair-setup', http_version=b'1.1')
2024-03-01 12:59:28.509 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): h11 Event: Data(data=bytearray(b'\x00\x01\x00\x06\x01\x01'), chunk_start=False, chunk_end=False)
2024-03-01 12:59:28.510 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): h11 Event: EndOfMessage(headers=<Headers([])>)
2024-03-01 12:59:28.511 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49723): Request POST for path '/pair-setup': {'host': 'HASS\\032Bridge\\03291437F._hap._tcp.local', 'content-length': '6', 'content-type': 'application/pairing+tlv8'}
2024-03-01 12:59:28.511 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49723): Pairing [1/5]
2024-03-01 12:59:28.563 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): Send unencrypted: b'HTTP/1.1 200 OK\r\nContent-Type: application/pairing+tlv8\r\nContent-Length: 409\r\n\r\n\x06\x01\x02\x02\x10\x98\xeb\xf7\x9f\x88\x8e\xf54\xfb\xd9\x8d\xc2Vv\xdc\xde\x03\xff\x17T\xd8\x04\x16\xcf\x8f\x9a\x16U\xf4G\x85\xfb(\xa4\x9d\xc1f\x14#\xc7_\xd9\x00\x8b=\x06\xfb\xa1\xfb\x10\x8c\x96x\xa5\x1e\xbb~.\xfe\x11\x10\x82\x82\xb3\xfc\xee\xb5\xee\xb7N\xa8\x9b\xb0\x9f\xc2i\x7f\xb7\xd2\xe1M^\x11]\xb0T(i\xf1\xaf\x05\xf7\x9e~\x7f\x05lG\x95\xd4\x886\x8d$\xd8\x12\xf0\xd0p\xe3\x12qa~\xfc\x0f\xf7S=\x81\x80^\xf3Ef\x99@\xda$(i\x0bW\xc3u\xbcX\xb6\x80\xe6\x9c[\xc6\xc5z\x7fS\x90&\x1fdTI`\x8c\x99`\x98j\x8bOk\xa3\xa5\xcb\x05/\x8b\x06\xe5j^wg\xb5\xe1\x97\xf7g\xa9\x14\x1a\x90\xb1\xb5\'!lj\x1e\x1a\xca\x01\xa9A\x0e\xc6\xe5\x93\x88\x86G\x1f>\x83\xfd\xcaW\n\x08X\xf9E\xdf\xe6\r\x1e\xcd\xed\th\x8d\xe1o\x89\x8e\xd9\xf9\x9c\xac\xae\x15\xa4\x025Q\xbbH<MZ\xa1\xd66\x11\x9c\xd5:\xb8\x9c?\x92\xe95[\xa6\xcf\xb2\xab9\xbd\xbd.Op\xae\x82\xdc\x1d\x15\x08~\xe5\x03\x813\xc5\xfa\xa9\x14\xa5u\xf2Gi\xc2\x8eKk<\x9d\x07\xcd.\xfc\x18-\xe1\xd4T%\xdc\xe5\xae\xf1\x9f\xf6\xa8\x0c\xe7\xc3\x91\x9e\x97g\xba1\xa7\xb1\xa5_\x19W\x9c\xed\xb0\xee\x05\xf5\xb5\xa8Y\r8-\xa7Y#\xf7{\xe7\'\xd6 \xbe\xf7\x90\x11\x03[}&B\xf4\xe3\xf62X\x08d\x08\x97\xc2\x11\x81y\xa4WF\xee\x8a\x0b0\xbe\x06\x107\xe2\xfd\xd7K;\xe3\xf6\x10\xd2TU$>\x98+\xad@d\xbbJ2\xdf\xbbb\xd4\xac"'
2024-03-01 12:59:28.563 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): h11 Event: NEED_DATA
2024-03-01 12:59:28.564 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49723) (None): Connection lost to HASS Bridge: [Errno 104] Connection reset by peer
2024-03-01 12:59:28.629 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724): Connection made to HASS Bridge
2024-03-01 12:59:28.630 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): Recv unencrypted: b'POST /pair-setup HTTP/1.1\r\nHost: HASS\\032Bridge\\03291437F._hap._tcp.local\r\nContent-Length: 6\r\nContent-Type: application/pairing+tlv8\r\n\r\n\x00\x01\x00\x06\x01\x01'
2024-03-01 12:59:28.630 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): h11 Event: Request(method=b'POST', headers=<Headers([(b'host', b'HASS\\032Bridge\\03291437F._hap._tcp.local'), (b'content-length', b'6'), (b'content-type', b'application/pairing+tlv8')])>, target=b'/pair-setup', http_version=b'1.1')
2024-03-01 12:59:28.630 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): h11 Event: Data(data=bytearray(b'\x00\x01\x00\x06\x01\x01'), chunk_start=False, chunk_end=False)
2024-03-01 12:59:28.630 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): h11 Event: EndOfMessage(headers=<Headers([])>)
2024-03-01 12:59:28.631 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49724): Request POST for path '/pair-setup': {'host': 'HASS\\032Bridge\\03291437F._hap._tcp.local', 'content-length': '6', 'content-type': 'application/pairing+tlv8'}
2024-03-01 12:59:28.631 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49724): Pairing [1/5]
2024-03-01 12:59:28.681 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): Send unencrypted: b'HTTP/1.1 200 OK\r\nContent-Type: application/pairing+tlv8\r\nContent-Length: 409\r\n\r\n\x06\x01\x02\x02\x10O\x87{y\x01\xf0\x8e\x07\x88\x1b\x17e\x1e\xf9\x96\xd3\x03\xff\xb2\xd9\x83\xfd\x1e\x93\xd8"\xa1\xb5&\xc5\x8c\x8a\xe7\xd3\x92NC\xaa$mp\x9cA\xa1\x8d\xf5\x13\xc0"N\x8e""\x9d#<\xc1\xf5%=\xc6\xb8JA\x9b\xb5k\xb8\xb5\xcfo,\x9bj\xdd(a\xb1\x06\xf3\xd5\x0c\x97\x9b\xaf\xdc\xefU\x1b\xbbt\xa8~\xd1\xe7\xb2\xa6u\x9a\x0b\xf0a\xa4\x96\xe4\xa0,\x03sg\xee\x9e\xff\xa3\xdd\xde\xe4\xe64\xad\x10\xf9\xdb>si29\x84w\xa6\xaf\xa1\xb8\x95Z\x03\x1b\xe3\xc0\x1d\xa1\x99\xac\xf9\xd2S\x8d\x0e\x82\'cv\x8e7>\x85\xc6\x03\'\xa8\xee2\x8c\x10\xe6\xffx\xd7\xf3=aeF\x13q\x06\xb5(11\xc2r\x82\xa7\x81\xe3q,\xcb\xc7\xa4\xef\x91\xf2\xef\x0c<|\x9a_\xefne-m\x1d\x14\xb9[\xeb\x7f\x89U\x06\xb5\x9a\x88pK\x93b\x1a\x014\xe7Z\x16v\xaf\x930;\xf1st\x8bX O*$\xf7\xe3\xfc\xe4r\x10w\xe6\xd8v\xa8\x11D\xaa\x02\xc5\\\x9a\xc8\x9c\n%\xbb\xb0z\xc9\xfd\xb7\xaa\x14\x95\x03\x81\x18\x1dV\xddvB\xe2^\x19\x7f\x87\x88-\x7f0\xf3\x91nf\xb4e\x11\xd4z1\x0e\xf9\x9b\x89\xbd\x04c\xab&\xf5\xc7\xea\xe7s\xcb\xc7H\x1e\xf7\xd2!\x12\xb63J\xae(t!\x9a\xd9\xf5+\x9f\x9c\xe6\x04\x9bNM\xc1;\xb8\xccQ\xa3\xfd\xc7\xb9\xeb\xb3m\xcdF\xa1\xab\xd40u\xc6\xe4pu\x96t\xd5\xdaGQ\x88\xcb\xde\xe0\xac#\xc6\xde\xb9\xd5\xb9\x00D\xdc\xdco\xe6Am\x04\x11\x9c^\xa7\xe77\x9aM\xb2\xfa\xc7\xcb\xb4\xa8\xa6'
2024-03-01 12:59:28.681 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): h11 Event: NEED_DATA
2024-03-01 12:59:28.681 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49724) (None): Connection lost to HASS Bridge: [Errno 104] Connection reset by peer
2024-03-01 12:59:35.750 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726): Connection made to HASS Bridge
2024-03-01 12:59:35.750 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): Recv unencrypted: b'POST /pair-setup HTTP/1.1\r\nHost: HASS\\032Bridge\\03291437F._hap._tcp.local\r\nContent-Length: 6\r\nContent-Type: application/pairing+tlv8\r\n\r\n\x00\x01\x00\x06\x01\x01'
2024-03-01 12:59:35.750 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): h11 Event: Request(method=b'POST', headers=<Headers([(b'host', b'HASS\\032Bridge\\03291437F._hap._tcp.local'), (b'content-length', b'6'), (b'content-type', b'application/pairing+tlv8')])>, target=b'/pair-setup', http_version=b'1.1')
2024-03-01 12:59:35.751 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): h11 Event: Data(data=bytearray(b'\x00\x01\x00\x06\x01\x01'), chunk_start=False, chunk_end=False)
2024-03-01 12:59:35.751 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): h11 Event: EndOfMessage(headers=<Headers([])>)
2024-03-01 12:59:35.751 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49726): Request POST for path '/pair-setup': {'host': 'HASS\\032Bridge\\03291437F._hap._tcp.local', 'content-length': '6', 'content-type': 'application/pairing+tlv8'}
2024-03-01 12:59:35.751 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49726): Pairing [1/5]
2024-03-01 12:59:35.770 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): Send unencrypted: b'HTTP/1.1 200 OK\r\nContent-Type: application/pairing+tlv8\r\nContent-Length: 409\r\n\r\n\x06\x01\x02\x02\x10\xfe\xf2\xd8\xb0\xf8O\xf3j\xc2yV\xd6\xeb)\xfd\xfe\x03\xff\xe7\xc7\x01_\xdf\x9e\x1e\xe4\x9c\xa6\x1c\xa8\xd3\xa55.d<2a|\xb5\x9b\xa0c\x8b\xb2\xc1c\xe7@\x83J\x02E\xe1\xf3\xd5\xfb4|\xdb\xdd\xba\xb7\xf2V\xd5\x87\x15{\x91v\xbb*j\xf5\n]\n"\t\x84\xc4\xde\xa8\x13\x08q\xa0\xc9\xf8\x99\xa2\xbek\xda\xce\xda\x8ah\x0cjp\xea\xda\x85\xf5[\xa9\x95\xb11|\x99snc7\xbb\xe2\xd4wv\x18\xdf\xae}*2\xaa\x04]\x83rrx\x86\xf5n\xb1)\x1c\x94&\x07\x99&\x02,\x8d\xc3\x98ml\xf93\xe6/R$\xb4\xd41\xfe\xed\x84\xc7`,\xd6\xe1+\xa8\xde\x00\x81x\xe0\xdb\'<\xb7\xeani\x01\x0e\x8c[d[$\xc6\xe9\xedn\x076Wtt\x18\xce\xbb(\xa5UK\xe3w\x91\xc89\x03\xc1J\x1c\xbb&[1\xb0~\xc3\xea\x19HT\x92\xd5\t\xca\x91)\x11\x0f\x0c\xbb\x08\xb1\xa6;\xden\xd0\xaf\x85\xa31\xf9S\x17Bt\xd829J*\x1aa\xa6o\x05\xa6\x12\x89\xa5\xcdh\x91\xbc\xe1\xad\x03\x81\xb6\x18\x8a\xe3\xa7\xe2\xc0\xed\x0eOz2\xb7\xa7\x9cdY\xcd>\x8ag\xd6\xb4/\xd1\x0f-\xea}\xbd\x10\x8e\x89\xdfk\xfb\x95\xd7\x93\xfe\xc6\xf8\xc4\'\x8c\x03\x92\xbeFa/\xa8\x9c\x12\xd3\xea\xd5\x9b..\x8c\x9e\xce\xac|\x048\xe9\xbapFz\xff\xc5^\x00\x85\x91\xe2\x0bP\xe8\xf0\x9c\x9a\xd2\xe7\xe2\x10\x02Z.kN\x99S\xa8]`\x07|\xac\xf7\xb4\x05\xa8qy`8\xe3\xffG|\r3\x08\xe7>\x08\xc7\xdeO\x14\xd3\x04\xf0e\xef'
2024-03-01 12:59:35.770 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): h11 Event: NEED_DATA
2024-03-01 12:59:35.770 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49726) (None): Connection lost to HASS Bridge: [Errno 104] Connection reset by peer
2024-03-01 12:59:35.876 INFO (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727): Connection made to HASS Bridge
2024-03-01 12:59:35.877 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): Recv unencrypted: b'POST /pair-setup HTTP/1.1\r\nHost: HASS\\032Bridge\\03291437F._hap._tcp.local\r\nContent-Length: 6\r\nContent-Type: application/pairing+tlv8\r\n\r\n\x00\x01\x00\x06\x01\x01'
2024-03-01 12:59:35.878 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): h11 Event: Request(method=b'POST', headers=<Headers([(b'host', b'HASS\\032Bridge\\03291437F._hap._tcp.local'), (b'content-length', b'6'), (b'content-type', b'application/pairing+tlv8')])>, target=b'/pair-setup', http_version=b'1.1')
2024-03-01 12:59:35.879 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): h11 Event: Data(data=bytearray(b'\x00\x01\x00\x06\x01\x01'), chunk_start=False, chunk_end=False)
2024-03-01 12:59:35.879 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): h11 Event: EndOfMessage(headers=<Headers([])>)
2024-03-01 12:59:35.880 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49727): Request POST for path '/pair-setup': {'host': 'HASS\\032Bridge\\03291437F._hap._tcp.local', 'content-length': '6', 'content-type': 'application/pairing+tlv8'}
2024-03-01 12:59:35.880 DEBUG (MainThread) [pyhap.hap_handler] ('192.168.1.155', 49727): Pairing [1/5]
2024-03-01 12:59:35.933 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): Send unencrypted: b'HTTP/1.1 200 OK\r\nContent-Type: application/pairing+tlv8\r\nContent-Length: 409\r\n\r\n\x06\x01\x02\x02\x100\x19be\xe2=\x19\x89\x04r\x8b\x18\xb9\x96!\x9e\x03\xff\xcez\r0\x0c\xbd~\x85\xda\xf2\x19q\xecU\xf9\x0c?)\xeb\xe5.#rsX\xb8\xf2\xed\x9dZ\x1a\xa7\xc8\\\x0c\xa6:T\x90\xacN\xacd\xbeQ\x11j\ra\xd9^l\xb7\xaa\x0e6\x9c\xb7;\xd9\x9a)\x19.,Ti\xc6\xda\x8f8\xbd\xa0a@\xd9\xea\xc4\xc3\xd2M\xcbs\x1c\x11\xa4\xf5a\xba\x9a\xbeX\xb7\x8bx\x18\x18\x96\xefs\x8dn7\xec\xbdu\x8d\xde\x9c\x91l\xcd(\\\xac;j\xd8*a\xb8\x8b\xa2;\xd1z\'7(\xf3\x1dY\xf3\xad\xd8\x95<\xed|,\xb1\xab\x13\xa11\x05\xf2?a\t\xc2\xde5\xf5\x90\xbbJ\xd94\xf1\x97@M\x00?E\x0b\xd1w1\x8c\x9f+\x00\x1a\xcf\xe7\xf7Q\xe0j\x04,$\x99\xd4>p\xb6j)\xb2\x97\xdf\xfb\x96\xbe\xad\n\xf6\xc0!\x0b`\xdd5<\x9e\x82)/\x82\xbc\xdb\x15$\xde\x89\x17\xa4\xa2\xbf\xbf\xddzv\x8e#\xd8\xbf\x99\xabA\xfb\xc0\x892\xa2\x06Y\xf30\xeb\xfe\xe1\x13h\\\xa2\x01\xb4%\xea6:\x03\x81\xe5\xe7\xa6\x90\x03\xaef\x08g{s\xcd\xd6MB\xd3"?\x86W\xad~\\\xa9\xec$\x93\x95\x14\xbe\xb8\xfa\x11\xaez8\xe2\xc9\xae.\x7f]\xf3]uv\x98(\x8bSg\x9b\xe1\xac\xf8\xda\xc6\xfd|C\xae\xaeH;\xc6}\x82\x1an\x9e\xc5\x83h\x89\xb4N\x9e\xb5\x0f\x14\xb1\xb4\x18\xf0<\xe3\xa2\x8e^\xd8\xef\xebu\xa1\xba\xa4\xff;e\xba\x1f`q\xc8\xa2\xd9\xf6s\xd4\xb3r\x81\xec\xd4S\x00\x13\xe7\xa8\xe9\xdb\x03beS,!\x97\xe6'
2024-03-01 12:59:35.933 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): h11 Event: NEED_DATA
2024-03-01 12:59:35.934 DEBUG (MainThread) [pyhap.hap_protocol] ('192.168.1.155', 49727) (None): Connection lost to HASS Bridge: [Errno 104] Connection reset by peer

Cloud you please tell me how to solve it?

I legitimately don’t know how I solved it. I tried some combination of the above and it started working again. I’m not sure what fixed it exactly.

Sorry :confused:

Hey I got the same issue and I tried everything. However after I restarted HA it worked. Hope that helps someone