[APP][Pro] HomeKit Controller - for a better Homey

Hello, may I ask how often the HomeKit controller polls the state of connected devices? I’m asking because I’m using a Vimar blind connected through a Vimar Gateway to the HomeKit Controller, and the behavior is as follows:

  • If I change the windowCoverings_set from Homey, it changes instantly in Vimar (and the blind moves).
  • If I change the windowCoverings_set in the Vimar app, the position in the HomeKit controller doesn’t update as quickly. It does update if I restart the HomeKit controller, though.

So, is this a matter of polling frequency? Can I enforce these polls somehow?

EDIT:
it looks that HomeKit Controller detects the change instantly, but somehow can’t handle it. Here is the log generated a few seconds after I changed the position of the blinds from Vimar app:

undefined2024-05-22T17:08:44.730Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":2}

2024-05-22T17:08:44.728Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"1057273400114889757","value":73}

2024-05-22T17:08:39.234Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":0}

2024-05-22T17:08:39.233Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"7396842055735373569","value":73}

I’ve generated a report:

010451c5-9a54-48ba-998c-3712ae23e73f

Can you goto device settings and look for JSON label then copy and PM me the content so i can check what is going on.

Can you test with testversion 1.3.7 first? (and send me the JSON)

My Aqara Fp2 stopped working. I removed it and tried to add it again.
Now Homekit cannot find it.

I can see it in the Apple Home app just fine.

Any hints?

See remark number 2 of the first post of this thread.

Hello :wave:

Is it possible to integrate the smartmi air purifier 2 by using this app, and if so, can i find the pincode on the device?

Im about to buy one and it would be fun to know if it works.
Says it works with apple hk.

(New to Homey)

Thanks!

Hello, yes the problem is still present in 1.3.7.
Here is a new report number Report 5111f003-fb1e-418e-a1bc-59e652045f5c
I tried at first to move the blind within Homey app, it worked fine. Then I moved it in the Vimar app, Homey didn’t recognize the change of position.

Here on Dropbox is the JSON (I’m sorry, I had to make a .txt file because it’s too long for this post).

This is the log of the last minutes in which I did the test:

Log
undefined2024-05-23T13:28:58.492Z [log] [ManagerDrivers] [Driver:hapIP] [Device:0528505b-9e8b-4088-a7bd-24aa0ea813ef] Clima Bagno Giorno UNSUPPORTED Event: 12434421427512730333 {"aid":"12434421427512730333","iid":"16426106377380189824","value":23.5}

2024-05-23T13:28:08.831Z [log] [ManagerDrivers] [Driver:hapIP] [Device:6611edcc-026a-4d04-832c-0e2c33ad66f4] processEventChar alarm_motion0 0 Cucina {"aid":1,"iid":2690,"value":0}

2024-05-23T13:28:07.118Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":2}

2024-05-23T13:28:07.116Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"1057273400114889757","value":0}

2024-05-23T13:28:03.117Z [log] [ManagerDrivers] [Driver:hapIP] [Device:6611edcc-026a-4d04-832c-0e2c33ad66f4] processEventChar alarm_motion0 0 Cucina {"aid":1,"iid":2690,"value":1}

2024-05-23T13:27:58.370Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":0}

2024-05-23T13:27:58.368Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"7396842055735373569","value":0}

2024-05-23T13:27:44.606Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":2}

2024-05-23T13:27:44.605Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"1057273400114889757","value":40}

2024-05-23T13:27:37.349Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":1}

2024-05-23T13:27:36.354Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"7396842055735373569","value":40}

2024-05-23T13:27:36.349Z [log] [ManagerDrivers] [Driver:hapIP] [Device:c81e7bf5-9b8f-4bb1-a6e6-0159985d3b45] AG-3A2725FBB30603 writeCharacteristic success {

characteristics: [ { aid: [BigNumber], iid: [BigNumber], value: 40 } ]

} windowcoverings_set 0.4 40

2024-05-23T13:27:36.254Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] formatValueFromHomeyToHomeKit windowcoverings_set 0.4

2024-05-23T13:27:36.253Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] formatValueFromHomeyToHomeKit windowcoverings_set 0.4

2024-05-23T13:27:32.252Z [log] [ManagerDrivers] [Driver:hapIP] [Device:c81e7bf5-9b8f-4bb1-a6e6-0159985d3b45] AG-3A2725FBB30603 writeCharacteristic success {

characteristics: [ { aid: [BigNumber], iid: [BigNumber], value: 0 } ]

} windowcoverings_set 0 0

2024-05-23T13:27:32.233Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] formatValueFromHomeyToHomeKit windowcoverings_set 0

2024-05-23T13:27:32.229Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] formatValueFromHomeyToHomeKit windowcoverings_set 0

2024-05-23T13:27:28.853Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":2}

2024-05-23T13:27:28.852Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"1057273400114889757","value":0}

2024-05-23T13:27:26.310Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"16621513015895787963","value":0}

2024-05-23T13:27:25.422Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] Finestra SX Cucina Vimar UNSUPPORTED Event: 9282917221971153346 {"aid":"9282917221971153346","iid":"7396842055735373569","value":0}

2024-05-23T13:27:25.341Z [log] [ManagerDrivers] [Driver:hapIP] [Device:c81e7bf5-9b8f-4bb1-a6e6-0159985d3b45] AG-3A2725FBB30603 writeCharacteristic success {

characteristics: [ { aid: [BigNumber], iid: [BigNumber], value: 0 } ]

} windowcoverings_set 0 0

2024-05-23T13:27:25.228Z [log] [ManagerDrivers] [Driver:hapIP] [Device:5fe7b09b-8382-4a2d-80f4-05d951f116af] formatValueFromHomeyToHomeKit windowcoverings_set 0
1 Like

I think that I sent the diagnostic of another app :tired_face:. (sorry!) I’ve generated another diagnostic, hope it helps. Here it is: 5a3aa66c-0180-41af-af63-7087c661d914

No problem…

can go to https://tools.developer.homey.app/tools/devices search for the Finestra SX Cucina Vimar and post the capabilities? looks like it does not correctly defines capabilities.

Sure!

Capabilities

ID Title Type Value Set Value Last Changed
hap-identify Identify device boolean false SET 1 day ago
hap-manufacturer Manufacturer string Vimar 3 days ago
hap-model Model string ShutterPosition 3 days ago
hap-name Name string Finestra Sx Cucina 3 days ago
measure-position-current Current position number 1 6 hours ago
windowcoverings_set Posizione number 0 SET 1 hour ago
windowcoverings_closed Chiuse boolean true SET 1 hour ago
hap-position-state State position enum 2 3 days ago
hap-has-enum This device has a HAP ENUM capability boolean null
hap-has-number This device has a HAP NUMBER/RANGE capability boolean null
hap-has-events This device has a HAP events capability boolean null

hmmm, looks good

@Martin_Verbeek a forum is normally to talk about problems.

But i wanted to mention that (after replacing two fp2 sensors that were failing) i’m very happy now with the stability (i have 10). Its perfect. I had trouble finding your donate button, so maybe good idea to place it in the opening thread. I donated and again, thanks!

My guide in how to set it up properly can be found here:

Later on, i’ll be playing with some of the features of the sensor. But room presence, this is a whole new level.

2 Likes

It looks good, but the windowcoverings_set is not updated. The value 0 is the one I sent from Homey. Then, I changed it to 0.29 using the Vimar app, but Homey still displays 0. I can’t understand why.

Screenshots 📲


I do these things for the good stories. Much appreciated

One more i would like you to do… in the homey device goto settings and turn on debug. Change the value in the vimar app again and pm me the log.

Hello,

After adding my new aqara fp2 by homekit controller I would like to adjust with more speed the presence/unpresence.So I would like to ask if anyone has knowledge in JSON language?

After adding this fp2 by homekit controller if you click on the device you will see the json parameter maybe you can change some character there in order to be more accuracy?

Thanks.
Regards

??? That JSON is there to help me in getting info on devices that do get defined correctly. I can use that in my IDE to define devices i do not have and test withg it.

If an event comes from the device, it will be handled immediatly, the delay in the code is minimal, and that should not influence the reaction time. Networking congestion will influence. Also what i noticed is that the room presence (alarm_motion) is quick and specific defined zones are lagging. So my conclusion (maybe wrong) was that the FP2 zones are not so quick sending out the presence. Let me know if any other observations!

I did a quick search and apologies if it’s already addressed but since yesterday I enabled Homekit in Experiments and since then HomeKit controller is unresponsive. All devices have exclamation marks, update is greyed out and not able to restart.
Does the app require HomeKit in experiments to be disabled?

Experiment Homekit is the other way round. Devices in Homey made available to Homekit.

Are you able to copy, send the log

Thanks Martin but I reinstalled the app because restart was greyed out as well. Now it’s seems to work fine so perhaps this is a necessary step if you decide to us the Homey HomeKit feature.