Homekit Pairing


#1

Every time I turn off and turn on my raspberry pi I have to repeat the homekit pairing as it shows Device Unavailable.Is there any method to retain my homekit pairing?Can you explain the solution for this problem in step by step.
thank you in advance.


#2
  1. Uninstall the homekit extension
  2. Delete /var/lib/openhab2/jsondb/homekit.json
  3. Run sudo touch /var/lib/openhab/jsondb/homekit.json
  4. Run sudo chmod a-w /var/lib/openhab2/jsondb/homekit.json
  5. Reinstall homekit extension, and repeat the pairing process

#3

Thanks for the reply .
I don’t know how to delete file or which command should I use to delete that file.can u please help me out.


#4

run sudo rm /var/lib/openhab2/jsondb/homekit.json


#5

touch: cannot touch ‘/var/lib/openhab/jsondb/homekit.json’: No such file or directory
chmod: cannot access ‘/var/lib/openhab2/jsondb/homekit.json’: No such file or directory
I get these errors when run those command.
i ran those command after deleting step


#6

rm: cannot remove ‘/var/lib/openhab2/jsondb/homekit.json’: No such file or directory

i get this error