Skip to content

Converts a .vcf export from Google Contacts into a format that can be imported into a BT Smart Hub 2 for use with BT Digital Voice phones

Notifications You must be signed in to change notification settings

jevans3142/bt-hub-contacts-from-google-contacts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Description

This script converts a .vcf contacts file exported from Google Contacts into a format suitable to be uploaded to a BT Digital Voice DECT landline handset via the web interface on the BT Smart Hub 2. A direct upload will silently fail due to differences in formatting of phone numbers. This allows you to rapidly add lots of existing contacts without keying all the names and numbers in manually on the phone handset.

This script was written and tested against Python 3.10.1. Although substantially repurposed/rewritten the basis of this script is a a script authored by Mario Aeby with a different purpose.

EE Smart Hub Plus note

Although I have not been able to test this myself, "techydave" used this script on a newer EE Smart Hub Plus and sent this note:

There is however a problem with incoming calls from people in the contacts list in that their number is shown but not their name. I found that changing the 0044 prefix to just 0 fixed this problem (it may also have created other problems that I haven't found yet of course). I modified the output.vcf file easily by opening it in Notepad and using Replace to change 0044 with 0 and all appears well. With the Smart Hub Plus you just have to Input the new output.vcf file; this takes some time and gives you the impression that it will fail or corrupt the data but seems to work fine. Thanks to David for this note. This will probably become more relevant as BT moves its consumer brand to be EE.

Usage

To directly convert an input file and write to an output vcf file: python google-vcf-to-bt-hub.py input.vcf output.vcf

or to use the CLI: python google-vcf-to-bt-hub.py

Known Issues

  • The Digital Voice handsets tested only supported a single home, a single work, and a single mobile number per contact; any contact with multiple numbers tagged as one of these types will only have the first one imported though this will not generate a warning
  • The import method on the BT Smart Hub 2 is unable to 'update' existing contacts, so it is only possible to either 'append' new contacts or wipe the entire handset and re-import all (this is probably easiest if you keep your Google Contacts up to date)

Step by step instructions

Before you begin, wipe all phone contacts from your Digital Voice handset using the phonebook on the handset -> 'Delete All' if you want to re-import the entire phonebook rather than only append new contacts.

Google Contacts

  1. Open Google Contacts
  2. Select all contacts you wish to transfer
  3. From the selection context menu (three dots) at the top select 'Export'
  4. Select to export as 'vCard'
  5. Save this file as 'input.vcf' in the same directory as this script

Shell

  1. Switch to directory containing this script and the input.vcf file
  2. python google-vcf-to-bt-hub.py input.vcf output.vcf

BT Smart Hub 2

  1. Open the managment interface for your BT Smart Hub 2 (Typically at 192.168.1.254 or similar)
  2. Click on the purple icon marked 'Phone'
  3. Go to the 'Contacts' tab
  4. Under 'Import' click on 'Browse' and select output.vcf
  5. Click on 'Import'
  6. Contacts should now be automatically be synced with all DECT connected Digital Voice handsets

About

Converts a .vcf export from Google Contacts into a format that can be imported into a BT Smart Hub 2 for use with BT Digital Voice phones

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%