These two interfaces to Bluedevil don't use the same names for device types, but now they are unified under one common Javascript function shared between them.