hi, I’ve been having the same problem for a few days too, I have to restart the app to make it work again
Hey man! Using the app with FP2 and even though connecting it to homey was kind of hit & miss (but guess that’s not an issue with the app), it works great!
One simple request - I’m missing Luminance card for “and” action in flow… only presence is there… Is it something that could be added? It’s present for “when” (when luminance changes). I need for flows for light, e.g. “when presence in zone 2 is occupied” and “luminance is lower than xxx”
Thanks!
That is a Homey thing i guess, it does not create AND cards for luminance,
However, you can use logic in the AND card to compare against label luminance for the FP2
ah, ok, thought it’s something you need to setup in app
will try that! or create a flow that will assign it to variable on change
Hallo. I have for a longer time tried to install the Aqara Presence censor FP2-7E23. For a long time it just hasen’t shown up in the dialog when creating a device with Homekit Controller app i Homey. Now I have replaced my router and after a while when resetting the device it suddenly appeared.
Now when entering the pincode I get error “Connection refused, power cycle and please try to add after”. I have tryed power cycling and retrying severalt times, but it doesn’t help.
But after even more attempts the device was created, but with a red triangle an a “Device not available” error.
Do you have any ide what I should do?
Log from the app:
"undefined2024-10-16T15:37:50.560Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:37:50.552Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:37:50.550Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:37:50.479Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client true
2024-10-16T15:37:50.479Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.requestNewConnections Presence-Sensor-FP2-7E23 request new Connection
2024-10-16T15:37:50.479Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.NOCONNECTION Presence-Sensor-FP2-7E23
2024-10-16T15:37:20.757Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:37:20.752Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:37:20.749Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:37:20.463Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client true
2024-10-16T15:37:20.463Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.requestNewConnections Presence-Sensor-FP2-7E23 request new Connection
2024-10-16T15:37:20.463Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.NOCONNECTION Presence-Sensor-FP2-7E23
2024-10-16T15:36:50.827Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:36:50.646Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:36:50.644Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:36:50.452Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client true
2024-10-16T15:36:50.451Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.requestNewConnections Presence-Sensor-FP2-7E23 request new Connection
2024-10-16T15:36:50.451Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.NOCONNECTION Presence-Sensor-FP2-7E23
2024-10-16T15:36:49.283Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 Service DOWN for Presence-Sensor-FP2-7E23
2024-10-16T15:36:49.279Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Down Presence-Sensor-FP2-7E23._hap._tcp.local {"addresses":[],"subtypes":[],"name":"Presence-Sensor-FP2-7E23","fqdn":"Presence-Sensor-FP2-7E23._hap._tcp.local","host":"Presence-Sensor-FP2-7E23.local","referer":{"address":"10.0.0.4","family":"IPv4","port":5353,"size":247},"port":61559,"type":"hap","protocol":"tcp","txt":{"sh":"1ChOzg==","ci":"10","sf":"0","s#":"1","pv":"1.1","md":"PS-S02D","id":"EE:20:D5:E0:FC:55","ff":"2","c#":"1"}}
2024-10-16T15:36:20.546Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:36:20.539Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:36:20.538Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:36:20.439Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client true
2024-10-16T15:36:20.438Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.requestNewConnections Presence-Sensor-FP2-7E23 request new Connection
2024-10-16T15:36:20.438Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.NOCONNECTION Presence-Sensor-FP2-7E23
2024-10-16T15:35:50.746Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:35:50.740Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:35:50.739Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:35:50.412Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client true
2024-10-16T15:35:50.411Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.requestNewConnections Presence-Sensor-FP2-7E23 request new Connection
2024-10-16T15:35:50.411Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.NOCONNECTION Presence-Sensor-FP2-7E23
2024-10-16T15:35:20.646Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:35:20.639Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:35:20.638Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:35:20.392Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client true
2024-10-16T15:35:20.392Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.requestNewConnections Presence-Sensor-FP2-7E23 request new Connection
2024-10-16T15:35:20.391Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] checkConnectionState.NOCONNECTION Presence-Sensor-FP2-7E23
2024-10-16T15:34:50.539Z [err] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 error from getAccessories, Error: connect ECONNREFUSED 10.0.0.4:61359, => Broadcast update
2024-10-16T15:34:50.533Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:34:50.530Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:34:50.317Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 initialized
2024-10-16T15:34:50.314Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 setupConnection for EE:20:D5:E0:FC:55 on 10.0.0.4:61359, existing client false
2024-10-16T15:34:50.312Z [log] [ManagerDrivers] [Driver:hapIP] [Device:a2d5358d-0801-4260-802c-8fd3a24c2260] Presence-Sensor-FP2-7E23 Setting device class to sensor
2024-10-16T15:34:50.189Z [log] 10.0.0.4:61559 Persistent connection client got disconnected
2024-10-16T15:34:50.189Z [log] Socket close 10.0.0.4 61559
2024-10-16T15:34:50.188Z [log] Socket end 10.0.0.4 61559
2024-10-16T15:34:50.177Z [log] [ManagerDrivers] [Driver:hapIP] addPairData Presence-Sensor-FP2-7E23: Pairing Done!
2024-10-16T15:34:50.086Z [log] 10.0.0.4:61559 New persistent connection client initialized
2024-10-16T15:34:50.020Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Txt Update Presence-Sensor-FP2-7E23._hap._tcp.local {"addresses":[],"subtypes":[],"name":"Presence-Sensor-FP2-7E23","fqdn":"Presence-Sensor-FP2-7E23._hap._tcp.local","host":"Presence-Sensor-FP2-7E23.local","referer":{"address":"10.0.0.4","family":"IPv4","port":5353,"size":247},"port":61559,"type":"hap","protocol":"tcp","txt":{"sh":"1ChOzg==","ci":"10","sf":"0","s#":"1","pv":"1.1","md":"PS-S02D","id":"EE:20:D5:E0:FC:55","ff":"2","c#":"1"}}
2024-10-16T15:34:49.339Z [log] Socket close 10.0.0.4 61559
2024-10-16T15:34:49.336Z [log] Socket end 10.0.0.4 61559
2024-10-16T15:34:49.327Z [log] Socket connect 10.0.0.4 61559
2024-10-16T15:34:49.310Z [log] [ManagerDrivers] [Driver:hapIP] addPairData
2024-10-16T15:34:49.304Z [log] [ManagerDrivers] [Driver:hapIP] pairing success undefined
2024-10-16T15:34:49.036Z [log] startPairing M6
2024-10-16T15:34:49.009Z [log] startPairing M5
2024-10-16T15:34:49.008Z [log] {
statusCode: 200,
headers: {
'Content-Type': 'application/pairing+tlv8',
'Content-Length': '97'
},
body: <buffer 06="" 01="" 04="" 40="" af="" 0e="" 5f="" b5="" d9="" f8="" 14="" 61="" 71="" 46="" 6f="" c4="" 70="" 45="" ba="" 24="" b2="" 5b="" aa="" dd="" 7a="" 5a="" ff="" 91="" b1="" 17="" 11="" 2b="" 21="" c1="" 0a="" 26="" 8d="" 0d="" 64="" 34="" 94="" 66="" c0="" 08="" ...="" 47="" more="" bytes="">
}
</buffer>2024-10-16T15:34:48.123Z [log] startPairing M4, m3 is <buffer 06="" 01="" 03="" ff="" 6b="" 4b="" 0f="" d6="" 70="" 63="" d0="" 9d="" 7a="" b5="" 5a="" 8b="" 3c="" 12="" 79="" 82="" 9a="" c3="" 5e="" 22="" 9f="" 8a="" cb="" 50="" 35="" 90="" ae="" 69="" e7="" 45="" 29="" 3a="" 65="" e6="" fe="" e1="" 3e="" 0e="" 34="" 1d="" ...="" 407="" more="" bytes="">
</buffer>2024-10-16T15:34:47.522Z [log] startPairing M3
2024-10-16T15:34:47.522Z [log] startPairing M2
2024-10-16T15:34:47.521Z [log] {
statusCode: 200,
headers: {
'Content-Type': 'application/pairing+tlv8',
'Content-Length': '409'
},
body: <buffer 06="" 01="" 02="" 03="" ff="" 7b="" c1="" 21="" e2="" fb="" 98="" 95="" 43="" 93="" dc="" 6c="" cb="" 55="" 1b="" bb="" 8c="" 61="" db="" e0="" b7="" 04="" b5="" 5a="" 0b="" aa="" 1e="" 34="" a6="" 3a="" 6f="" 11="" 48="" 77="" be="" 5e="" 0d="" 89="" 76="" ...="" 359="" more="" bytes="">
}
</buffer>2024-10-16T15:34:46.841Z [log] Socket connect 10.0.0.4 61559
2024-10-16T15:34:46.758Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T15:34:46.757Z [log] startPairing M1
2024-10-16T15:34:46.757Z [log] startPairing Connection
2024-10-16T15:34:46.757Z [log] startPairing method 0 flags 0
2024-10-16T15:34:46.756Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T15:34:18.256Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Up Presence-Sensor-FP2-7E23._hap._tcp.local {"addresses":["10.0.0.4","fe80::56ef:44ff:fe56:7e23"],"subtypes":[],"name":"Presence-Sensor-FP2-7E23","fqdn":"Presence-Sensor-FP2-7E23._hap._tcp.local","host":"Presence-Sensor-FP2-7E23.local","referer":{"address":"10.0.0.4","family":"IPv4","port":5353,"size":634},"port":61559,"type":"hap","protocol":"tcp","txt":{"sh":"1ChOzg==","ci":"10","sf":"1","s#":"1","pv":"1.1","md":"PS-S02D","id":"EE:20:D5:E0:FC:55","ff":"2","c#":"1"}}
2024-10-16T15:29:15.069Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:29:15.066Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:29:15.065Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:29:14.894Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T15:29:14.893Z [log] startPairing M1
2024-10-16T15:29:14.893Z [log] startPairing Connection
2024-10-16T15:29:14.893Z [log] startPairing method 0 flags 0
2024-10-16T15:29:14.892Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T15:28:45.483Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'Presence-Sensor-FP2-7E23',
host: 'Presence-Sensor-FP2-7E23.local',
address: '10.0.0.4',
port: 61359,
'c#': 1,
ff: 2,
id: 'EE:20:D5:E0:FC:55',
md: 'PS-S02D',
pv: '1.1',
's#': 1,
sf: 1,
ci: 10,
class: 'sensor',
sh: '1ChOzg==',
availableToPair: true,
pairMethod: 0
}
2024-10-16T15:28:09.638Z [log] Socket close 10.0.0.4 61359
2024-10-16T15:28:09.634Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:28:09.633Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T15:28:09.481Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T15:28:09.480Z [log] startPairing M1
2024-10-16T15:28:09.480Z [log] startPairing Connection
2024-10-16T15:28:09.479Z [log] startPairing method 0 flags 0
2024-10-16T15:28:09.479Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:54:18.105Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:54:18.103Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:54:18.102Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:54:18.001Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:54:18.000Z [log] startPairing M1
2024-10-16T14:54:18.000Z [log] startPairing Connection
2024-10-16T14:54:17.999Z [log] startPairing method 0 flags 0
2024-10-16T14:54:17.999Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:53:47.859Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'Presence-Sensor-FP2-7E23',
host: 'Presence-Sensor-FP2-7E23.local',
address: '10.0.0.4',
port: 61359,
'c#': 1,
ff: 2,
id: 'EE:20:D5:E0:FC:55',
md: 'PS-S02D',
pv: '1.1',
's#': 1,
sf: 1,
ci: 10,
class: 'sensor',
sh: '1ChOzg==',
availableToPair: true,
pairMethod: 0
}
2024-10-16T14:44:47.793Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Down Presence-Sensor-FP2-7E23._hap._tcp.local {"addresses":["10.0.0.4","fe80::56ef:44ff:fe56:7e23"],"subtypes":[],"name":"Presence-Sensor-FP2-7E23","fqdn":"Presence-Sensor-FP2-7E23._hap._tcp.local","host":"Presence-Sensor-FP2-7E23.local","referer":{"address":"10.0.0.4","family":"IPv4","port":5353,"size":634},"port":61359,"type":"hap","protocol":"tcp","txt":{"sh":"1ChOzg==","ci":"10","sf":"1","s#":"1","pv":"1.1","md":"PS-S02D","id":"EE:20:D5:E0:FC:55","ff":"2","c#":"1"}}
2024-10-16T14:43:11.489Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:43:11.486Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:43:11.486Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:43:11.480Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:43:11.480Z [log] startPairing M1
2024-10-16T14:43:11.479Z [log] startPairing Connection
2024-10-16T14:43:11.479Z [log] startPairing method 0 flags 0
2024-10-16T14:43:11.479Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:42:41.135Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'Presence-Sensor-FP2-7E23',
host: 'Presence-Sensor-FP2-7E23.local',
address: '10.0.0.4',
port: 61359,
'c#': 1,
ff: 2,
id: 'EE:20:D5:E0:FC:55',
md: 'PS-S02D',
pv: '1.1',
's#': 1,
sf: 1,
ci: 10,
class: 'sensor',
sh: '1ChOzg==',
availableToPair: true,
pairMethod: 0
}
2024-10-16T14:37:22.801Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:37:22.800Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:37:22.800Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:37:22.607Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:37:22.607Z [log] startPairing M1
2024-10-16T14:37:22.607Z [log] startPairing Connection
2024-10-16T14:37:22.606Z [log] startPairing method 0 flags 0
2024-10-16T14:37:22.606Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:37:02.839Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'Presence-Sensor-FP2-7E23',
host: 'Presence-Sensor-FP2-7E23.local',
address: '10.0.0.4',
port: 61359,
'c#': 1,
ff: 2,
id: 'EE:20:D5:E0:FC:55',
md: 'PS-S02D',
pv: '1.1',
's#': 1,
sf: 1,
ci: 10,
class: 'sensor',
sh: '1ChOzg==',
availableToPair: true,
pairMethod: 0
}
2024-10-16T14:36:42.867Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:36:42.865Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:36:42.864Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:36:42.649Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:36:42.649Z [log] startPairing M1
2024-10-16T14:36:42.648Z [log] startPairing Connection
2024-10-16T14:36:42.648Z [log] startPairing method 0 flags 0
2024-10-16T14:36:42.647Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:28:46.703Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:28:46.702Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:28:46.701Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:28:46.684Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:28:46.683Z [log] startPairing M1
2024-10-16T14:28:46.682Z [log] startPairing Connection
2024-10-16T14:28:46.682Z [log] startPairing method 0 flags 0
2024-10-16T14:28:46.682Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:28:30.302Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'Presence-Sensor-FP2-7E23',
host: 'Presence-Sensor-FP2-7E23.local',
address: '10.0.0.4',
port: 61359,
'c#': 1,
ff: 2,
id: 'EE:20:D5:E0:FC:55',
md: 'PS-S02D',
pv: '1.1',
's#': 1,
sf: 1,
ci: 10,
class: 'sensor',
sh: '1ChOzg==',
availableToPair: true,
pairMethod: 0
}
2024-10-16T14:28:11.684Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:28:11.683Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:28:11.682Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:28:11.462Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:28:11.459Z [log] startPairing M1
2024-10-16T14:28:11.459Z [log] startPairing Connection
2024-10-16T14:28:11.458Z [log] startPairing method 0 flags 0
2024-10-16T14:28:11.458Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:27:34.516Z [log] Socket close 10.0.0.4 61359
2024-10-16T14:27:34.511Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:27:34.510Z [err] Socket error 10.0.0.4 61359 connect ECONNREFUSED 10.0.0.4:61359
2024-10-16T14:27:34.442Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T14:27:34.441Z [log] startPairing M1
2024-10-16T14:27:34.441Z [log] startPairing Connection
2024-10-16T14:27:34.440Z [log] startPairing method 0 flags 0
2024-10-16T14:27:34.440Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T14:27:00.479Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'Presence-Sensor-FP2-7E23',
host: 'Presence-Sensor-FP2-7E23.local',
address: '10.0.0.4',
port: 61359,
'c#': 1,
ff: 2,
id: 'EE:20:D5:E0:FC:55',
md: 'PS-S02D',
pv: '1.1',
's#': 1,
sf: 1,
ci: 10,
class: 'sensor',
sh: '1ChOzg==',
availableToPair: true,
pairMethod: 0
}
2024-10-16T14:25:23.924Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Up Presence-Sensor-FP2-7E23._hap._tcp.local {"addresses":["10.0.0.4","fe80::56ef:44ff:fe56:7e23"],"subtypes":[],"name":"Presence-Sensor-FP2-7E23","fqdn":"Presence-Sensor-FP2-7E23._hap._tcp.local","host":"Presence-Sensor-FP2-7E23.local","referer":{"address":"10.0.0.4","family":"IPv4","port":5353,"size":634},"port":61359,"type":"hap","protocol":"tcp","txt":{"sh":"1ChOzg==","ci":"10","sf":"1","s#":"1","pv":"1.1","md":"PS-S02D","id":"EE:20:D5:E0:FC:55","ff":"2","c#":"1"}}
2024-10-16T12:22:37.530Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Down TRADFRI gateway._hap._tcp.local {"addresses":["10.0.0.16","fe80::4691:60ff:fe2f:d405"],"subtypes":[],"name":"TRADFRI gateway","fqdn":"TRADFRI gateway._hap._tcp.local","host":"TRADFRI-Gateway-4491602fd405.local","referer":{"address":"10.0.0.16","family":"IPv4","port":5353,"size":397},"port":80,"type":"hap","protocol":"tcp","txt":{"c#":"11","ff":"1","id":"A1:28:48:1A:88:C2","md":"TRADFRI gateway","pv":"1.1","s#":"1","sf":"1","ci":"2","sh":"zeJstw=="}}
2024-10-16T12:20:06.330Z [log] Socket close 10.0.0.16 80
2024-10-16T12:20:06.326Z [log] Socket end 10.0.0.16 80
2024-10-16T12:20:06.321Z [err] [ManagerDrivers] [Driver:hapIP] pairing not successful M4: Error: 2
2024-10-16T12:20:06.317Z [log] {
statusCode: 200,
headers: { 'Content-Type': 'application/pairing+tlv8', 'Content-Length': '6' },
body: <buffer 06="" 01="" 04="" 07="" 02="">
}
</buffer>2024-10-16T12:20:05.849Z [log] startPairing M4, m3 is <buffer 06="" 01="" 03="" ff="" 3e="" d3="" bd="" 90="" a1="" 31="" 2b="" 3d="" 1f="" 4f="" 80="" f6="" c3="" f5="" d7="" cb="" 77="" 89="" 4c="" 56="" 40="" a8="" dd="" f1="" dc="" 1e="" 81="" ed="" ba="" 1c="" be="" 97="" ca="" 99="" e7="" fa="" ...="" 407="" more="" bytes="">
</buffer>2024-10-16T12:20:04.917Z [log] startPairing M3
2024-10-16T12:20:04.915Z [log] startPairing M2
2024-10-16T12:20:04.913Z [log] {
statusCode: 200,
headers: {
'Content-Type': 'application/pairing+tlv8',
'Content-Length': '409'
},
body: <buffer 06="" 01="" 02="" 03="" ff="" da="" d7="" f6="" 7a="" 9c="" ac="" 4b="" e1="" 70="" 39="" 5e="" fc="" e0="" e6="" 9e="" a2="" 6c="" 8f="" ea="" 0a="" 71="" c7="" 4f="" 05="" b9="" d1="" a6="" 90="" 35="" a1="" 7f="" c4="" 81="" df="" 78="" 37="" 0f="" 8b="" e5="" ...="" 359="" more="" bytes="">
}
</buffer>2024-10-16T12:20:04.202Z [log] Socket connect 10.0.0.16 80
2024-10-16T12:20:04.191Z [log] startPairing M2, M1 is <buffer 06="" 01="" 00="">
</buffer>2024-10-16T12:20:04.188Z [log] startPairing M1
2024-10-16T12:20:04.187Z [log] startPairing Connection
2024-10-16T12:20:04.187Z [log] startPairing method 1 flags 0
2024-10-16T12:20:04.186Z [log] [ManagerDrivers] [Driver:hapIP] pairSetup
2024-10-16T12:18:28.462Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'TRADFRI gateway',
host: 'TRADFRI-Gateway-4491602fd405.local',
address: '10.0.0.16',
port: 80,
'c#': 11,
ff: 1,
id: 'A1:28:48:1A:88:C2',
md: 'TRADFRI gateway',
pv: '1.1',
's#': 1,
sf: 1,
ci: 2,
class: 'other',
sh: 'zeJstw==',
availableToPair: true,
pairMethod: 1
}
2024-10-16T12:17:58.917Z [log] [ManagerDrivers] [Driver:hapIP] {
name: 'TRADFRI gateway',
host: 'TRADFRI-Gateway-4491602fd405.local',
address: '10.0.0.16',
port: 80,
'c#': 11,
ff: 1,
id: 'A1:28:48:1A:88:C2',
md: 'TRADFRI gateway',
pv: '1.1',
's#': 1,
sf: 1,
ci: 2,
class: 'other',
sh: 'zeJstw==',
availableToPair: true,
pairMethod: 1
}
2024-10-16T12:11:08.932Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Up TRADFRI gateway._hap._tcp.local {"addresses":["10.0.0.16","fe80::4691:60ff:fe2f:d405"],"subtypes":[],"name":"TRADFRI gateway","fqdn":"TRADFRI gateway._hap._tcp.local","host":"TRADFRI-Gateway-4491602fd405.local","referer":{"address":"10.0.0.16","family":"IPv4","port":5353,"size":397},"port":80,"type":"hap","protocol":"tcp","txt":{"c#":"11","ff":"1","id":"A1:28:48:1A:88:C2","md":"TRADFRI gateway","pv":"1.1","s#":"1","sf":"1","ci":"2","sh":"zeJstw=="}}
2024-10-16T11:44:17.715Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Up Weather Station._hap._tcp.local {"addresses":["10.0.0.18","fe80::72ee:50ff:fe83:b16e"],"subtypes":[],"txt":{"c#":"11","s#":"1","ff":"1","sf":"1","pv":"1.1","md":"Weather Station","id":"6C:2A:E8:F1:5E:8C","na_tkn":"b57309d557dc","ci":"2","sh":"/afviA=="},"name":"Weather Station","fqdn":"Weather Station._hap._tcp.local","host":"Netatmo.local","referer":{"address":"10.0.0.18","family":"IPv4","port":5353,"size":324},"port":5001,"type":"hap","protocol":"tcp"}
2024-10-16T11:19:21.521Z [log] [MyApp] cpu warning
2024-10-16T11:19:12.389Z [log] [ManagerDrivers] [Driver:hapIP] hapIP driver has been initialized
2024-10-16T11:19:12.388Z [log] [ManagerDrivers] [Driver:hapIP] discoveredHapBonjour devices Ready start browsing your network
2024-10-16T11:19:12.383Z [log] [ManagerDrivers] [Driver:hapIP] discoverDevicesBonjour
2024-10-16T11:19:11.463Z [log] [MyApp] Homekit Controller 1.3.15 has been initialized
2024-10-16T11:19:11.462Z [log] capturing stderr
2024-10-16T11:19:11.460Z [log] capturing stdout
2024-10-13T01:00:01.912Z [log] [MyApp] app unload called
2024-10-10T01:17:17.859Z [log] [MyApp] cpu warning
2024-10-10T01:17:09.317Z [log] [ManagerDrivers] [Driver:hapIP] Bonjour Up Weather Station._hap._tcp.local {"addresses":["192.168.0.212","fe80::72ee:50ff:fe83:b16e"],"subtypes":[],"txt":{"c#":"11","s#":"1","ff":"1","sf":"1","pv":"1.1","md":"Weather Station","id":"6C:2A:E8:F1:5E:8C","na_tkn":"b57309d557dc","ci":"2","sh":"/afviA=="},"name":"Weather Station","fqdn":"Weather Station._hap._tcp.local","host":"Netatmo.local","referer":{"address":"192.168.0.212","family":"IPv4","port":5353,"size":287},"port":5001,"type":"hap","protocol":"tcp"}
"
Looks like the app fails to use the new port it gets. Thank you for this log, it helps a lot!
FWIW, it’s the device that seems to be causing the problem, your app is trying to connect to the port but it fails because there’s nothing on the device side listening to it (hence the ECONNREFUSED).
The FP2 changes the port in some circumstances, when the change broadcast comes through i should change the port it listens to, that works most of the time, but looks like in some situations it does not pick up the new port number… hence the old port is not listening anymore ![]()
But is it configurable which port to use? I don’t find anywhere to do that.
It looks like port 51380 is used now…
No that is not configurable.
But what is there to do?
In the absence of anything else to try, I have now deleted it in both Homey and in the Aqara app. Then I have reset it and re-entered it in the Aqara app.
Then I try to create a new device based on the HomeKit Controller app in Homey and discover, as I feared, that it does not appear.
I guess I’ll just have to wait
I might have found something.
Thanks for that.
By the way I have now waited for a day and it still doesn’t show up trying to ad the PF2 ith HomeKit Controller app.
It is random what happens as I experience it
Hello
I got inspired by your post to migrate SG Smart to homey aswell. I experience the same issue as you. I created a simple flow that seems to work for the time being, until a new update is released, that potentially fix this.
Thanks for sharing! Trying it now ![]()
@Martin_Verbeek, just wanted to know if there is something we, the user, can do to make this work i.e. a user configuration error?
If you are referring to the FP2 getting disconnected from Homekit, I do not think there is something you or I can do. Have spend significant amount of time to find a solution. But my current conclusion is that sometimes the FP2 just does not (re)start its Homekit service when something happens, looking at the comments in new fw release of the FP2 it seems to be a known issue.
I have updated code to make users aware that the network is disconnected with new capabilities that Athom released in 12.2.0. This will be released shortly
At least make sure that you are on latest fw release of the FP2.
Thanks for swift reply, should of been more precise. Was asking about this post regarding Homekit Controller crashing when being used for SG Smart gateway.
Will check the diagnostic report
Can other HK devices be added?
For example I have an Onvis Smart Motion Sensor 2,
I removed it from HK. (Which removes it from the Onvis app).
I open Homey app on iOS. I attempt to add a new device via HK Controller.
It says adding HK IP. Then returns an error no device found.
I wasn’t given the opportunity to add the HK code for the Onvis SMS2 sensor.
