This is because your mobile phone has not backed up or backed up iCloud data for a long time and the mobile phone is not syncing data with iCloud all the time. Therefore, you need to manually sync iCloud data before you can use HomeKit.
Solution: In the phone, go to “Settings” - “Your Apple ID Account” - iCloud - iCloud Backup - Click on “Manual Backup” and it will be ready after sync is complete.