NRCHKB / node-red-contrib-homekit-bridged

Node-RED Contribution - HomeKit Bridged : Node-RED nodes to simulate Apple HomeKit devices.
https://nrchkb.github.io
MIT License
420 stars 52 forks source link

Bridge without response after unespected power down #270

Closed edupulu closed 3 years ago

edupulu commented 4 years ago

Hello! I have a problem when my RPi is unespectly power down. All accesories appear "without response" and rebooting RPi do not take any effect. Only thing I can do is to delete the bridge from my iphone. Then I try to add new accessory and the bridge is available to pair. After pairing, all accesories work as expected. This is a problem because I have automations and I really don't know if my system is working. Thanks in advance for your help.

Shaquu commented 4 years ago

What is the version of our plugin you are using?

edupulu commented 4 years ago

Version is 1.0.4

Shaquu commented 4 years ago

Please update to 1.1.1 Also I believe that it should work correctly after the restart (or force shutdown) but we can look closer at this problem.

edupulu commented 4 years ago

I have updated to 1.1.1 and when I restart node red service the "Home" app shows "without response". And again, the bridge appears in the new accessory setup. My raspberry is an old one (B+ if I remember well) and OS "Linux raspberrypi 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l GNU/Linux".

Shaquu commented 4 years ago

Okay, so couple of questions. When you updated from 0.x.y to version 1? And if you followed instructions regarding it? Please share your flow from node-red. Possibly you are sending a message which cause it.

edupulu commented 4 years ago

Hello, thank you for your response. Answers:

Flow: flow.txt

Shaquu commented 4 years ago

Please start with removing the all your bridges from Home.app and adding them again. It is mandatory after moving from version below 1 to 1+ for the first time.

edupulu commented 4 years ago

Hello, I did the following things:

I have observed, after each reboot or restart of service, the number associated to the bridge (see example in the attached pic: bridge-8464) is always different.

_integrations_homekit-and-siri_iPhones-screens-2

edupulu commented 4 years ago

Hello, any suggestion? I am not able to pair it with the iphone. I ran node red with Debug and the result is the following:

image

Can be something here that blocks the pairing?

Shaquu commented 4 years ago

Are you using the flow you shared last time? The exact flow?

edupulu commented 4 years ago

Only one change I made. I have divided the homekit nodes in two bridges. Only that

Shaquu commented 4 years ago

Could you please share that new flow? Bridges configuration is important.

edupulu commented 4 years ago

Yes you can see it attached flow.txt

Shaquu commented 4 years ago

@edupulu sorry it took so long. It looks like an issue with a Service Node in Subflow. Can you move all nodes outside of Subflow? What is the reason to use Subflow here? Is it only to make it look better? If so consider having NRCHKB nodes in another flow and using Link node to send messages between nodes.

Shaquu commented 3 years ago

@edupulu if you still have issue feel free to write in Discussions